-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Running ok in windows but in linux ...
PostPosted: Fri Mar 03, 2006 10:32 am 
Newbie

Joined: Fri Mar 03, 2006 10:23 am
Posts: 2
Hi all.

I have a web application developed with hibernate 3.0
I use tomcat v5.5 and mysql. The application runs very fast and very good in windows (development enviroment) but when I deploy it on linux (also with tomcat and mysql) it stays 2-4 sec on every request to db.

The connection pool size to db is set to 4.

Please can any one help me to find the problem. Where should I start looking for the problem?

10x


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 03, 2006 11:23 am 
Expert
Expert

Joined: Fri Aug 19, 2005 2:11 pm
Posts: 628
Location: Cincinnati
could be plenty of things

distance to mysql database
speed of computer
memory available
jdk version
available resources

I don't think there are any direct correlations between hibernate and linux which would make it run slower

_________________
Chris

If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 03, 2006 12:21 pm 
Newbie

Joined: Fri Mar 03, 2006 10:23 am
Posts: 2
kochcp wrote:
could be plenty of things

distance to mysql database
speed of computer
memory available
jdk version
available resources

I don't think there are any direct correlations between hibernate and linux which would make it run slower


the database is located on the same machine
the computer has 4 proc with 2GB memory
jdk is 5.0

So there must be something I do in my code

but in windows on a machine that is 10 times slower it works great


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 03, 2006 12:29 pm 
Expert
Expert

Joined: Fri Aug 19, 2005 2:11 pm
Posts: 628
Location: Cincinnati
on the windows machine, are you testing the webapp running as a webapp, or just running some junit tests.

try to run a profiler and see where the hang up is occuring

the following aren't linux specific based suggestions, but just some stuff i thought up real quick :)
but, I'd start by checking if you're making too many session factories (more than 1) , duplicating httprequest objects, have large enough queries that consume the connection_pool resources for too long, not closing sessions, the list goes on. ..

_________________
Chris

If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.