users@glassfish.java.net

Re: CPU always 100%

From: Chris Fleischmann <Chris.Fleischmann_at_Sun.COM>
Date: Wed, 13 Aug 2008 17:17:57 +1000

Howdy,

Too many open files is typically an indicator of not enough file
descriptors available at the time of the workload on GlassFish, to check
how many files are indeed open you can use netstat -an or lsof <on the
pid of GlassFish>. You may also want to cast your eyes over the
following blog:

http://lj4newbies.blogspot.com/2007/04/too-many-open-files.html

and as mentioned previously, the first few settings of the performance
tuning steps for Linux should be done as a minimum:

#max file count updated ~256 descriptors per 4Mb.
Specify number of file descriptors based on the amount of system RAM.
echo "6553" > /proc/sys/fs/file-max
#inode-max 3-4 times the file-max
#file not present!!!!!
#echo"262144" > /proc/sys/fs/inode-max
#make more local ports available
echo 1024 25000 > /proc/sys/net/ipv4/ip_local_port_range

Regards,

Chris




glassfish_at_javadesktop.org wrote:
> Glassfish: glassfish-installer-v2ur2-b04-linux.jar
> Platform: suse linux
>
> The usage of the application server is not too large.
> [Message sent by forum member 'joechang316' (joechang316)]
>
> http://forums.java.net/jive/thread.jspa?messageID=292970
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>

-- 
Sun Microsystems <http://www.java.com/> 	* Chris Fleischmann *
Solutions Architect - Software Practice
*Sun Microsystems Australia*
Phone x59152/+61 39869 6452
Mobile: +61409527930
FAX: +61 39869 6290
Email Chris.Fleischmann_at_Sun.COM <mailto:Chris.Fleischmann_at_Sun.COM>
Linkedin: Chris Fleischmann <http://www.linkedin.com/pub/1/317/9B2>
bottom <http://www.java.com>