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
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply 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
Ranch Hand

Joined: Mar 31, 2009
Posts: 222
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 (and free)
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Multi CPU configuration for a webapplication deployed on tomcat
 
Similar Threads
Java app servers on different platforms.
Apple switches to Intel
tomcat maxthread count and minspare thread count on tomcat 6.0
Vertical Cloning
Differences between Process and Thread