aspose file tools*
The moose likes Tomcat and the fly likes Multi CPU configuration for a webapplication deployed on tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Multi CPU configuration for a webapplication deployed on tomcat" Watch "Multi CPU configuration for a webapplication deployed on tomcat" New topic
Author

Multi CPU configuration for a webapplication deployed on tomcat

Vijay Kumar koganti
Ranch Hand

Joined: Jan 23, 2006
Posts: 53
Hi all,

can you let me know how can i configure Multiple CPU's on a unix box so that load is shared between two CPU's, currently my cpu utilization is as much as 100%..

Are there any special conifgs reqd.. and any links on the concept behind it.

regards,
vijay


vijay kumar k.
Misha Ver
Ranch Hand

Joined: Mar 03, 2008
Posts: 470
How many users are working with your application when you notice that it uses only one CPU? It could be an issue with JVM which your Tomcat uses.
Kees Jan Koster
JavaMonitor Support
Rancher

Joined: Mar 31, 2009
Posts: 251
    
    5
Dear Vijay,

Make sure you use a modern VM (Java 1.6) because locking strategies improved dramatically over time.

http://java-monitor.com/forum/showthread.php?t=133

Also, start Tomcat using the -server flag.

http://java-monitor.com/forum/showthread.php?t=552

From there, use thread dumps to analyze what your code is doing. Go through them to reduce lock contention and make your code more suitable for multi-processor machines.

http://java-monitor.com/forum/showthread.php?t=317
http://java-monitor.com/forum/showthread.php?t=616

Hope this gives you some starting points.

Kees Jan


Java-monitor, JVM monitoring made easy <- right here on Java Ranch
Vijay Kumar koganti
Ranch Hand

Joined: Jan 23, 2006
Posts: 53
Misha Ver wrote:How many users are working with your application when you notice that it uses only one CPU? It could be an issue with JVM which your Tomcat uses.


there are 8 users that are using and the JVM i am using is :

java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) 64-Bit Server VM (build 16.0-b13, mixed mode)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Multi CPU configuration for a webapplication deployed on tomcat