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.  [ 2 posts ] 
Author Message
 Post subject: Linux Jetty Java EE High Load Problems
PostPosted: Fri Aug 31, 2012 2:38 am 
Newbie

Joined: Tue Aug 31, 2010 5:00 pm
Posts: 8
Java EE, Linux Ubuntu Server, Jetty
Linux 2.6.32-22-server #33-Ubuntu SMP UTC 2010 x86_64 GNU/Linux

For some reason the JSVC process is at almost 300% (I think the max is 400%. It's a dual core with hyper-threading.)
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
22639 jetty 20 0 1509m 426m 13m S 295 11.0 778:00.27 jsvc

I don't like having it that high. There's definately something wrong. The uptime also indicate high load (app. 20 when it should be at 4)

root# uptime
14:10:23 up 100 days, 19:51, 4 users, load average: 22.75, 22.46, 22.31

I'm not too experienced with these things. I've tried reducing the hibernate-spring.properties
+++++++++++++++++++++++++++
-hibernate.c3p0.initialPoolSize=10
-hibernate.c3p0.maxPoolSize=25

persistence.xml
+++++++++++++++
-<property name="hibernate.connection.pool_size" value="20" />
Prevoiusly they were much higher.
Merely starting Jetty sends the jsvc-process to 300%.

How do I get down the load to a reasonable level?


Top
 Profile  
 
 Post subject: Re: Linux Jetty Java EE High Load Problems
PostPosted: Sun Sep 02, 2012 2:09 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
It could be your application is just doing the stuff it's supposed to do. I'd suggest to use a profiler to inspect where it's spending the CPU time.

Shooting in the dark with random configuration settings requires too much luck! I doubt the pool settings have anything to do with it; to the contrary a common problem is people having a "slow" service while the CPU load is low; in that case some resource is blocking the full speed (like no enough database connections) but you seem to have the opposite problem.. using the CPUs you've got is usually a trait of healthy setups, why did you get them otherwise? Just make sure they are not spending power doing worthless/unintended stuff... no way to check that without a profiler or a crystal ball.

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.