Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
9Activity
0 of .
Results for:
No results containing your search query
P. 1
Settings Java JBoss

Settings Java JBoss

Ratings: (0)|Views: 534 |Likes:
Published by Pablo_M_Jim_ne_2363

More info:

Published by: Pablo_M_Jim_ne_2363 on Mar 05, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

02/16/2013

pdf

text

original

 
Below are some configurations that can be made on the caTissue JBoss application server for betterperformance.
Contents
1 Turn on explicit garbage collection
2 Setting JVM memory allocation pool parameters ( Heapsize )
3 Setting JVM memory allocation pool parameters ( Permsize )
4 Configure console and file logging level of Jboss
Turn on explicit garbage collection
One of the most commonly encountered uses of explicit garbage collection occurs with RMI's distributedgarbage collection (DGC). Applications using RMI refer to objects in other virtual machines. Garbage can't becollected in these distributed applications without occasional local collection, so RMI forces periodic fullcollection. The frequency of these collections can be controlled with properties.For example,
Platform: Windows
File Name:JBOSS_HOME\bin\run.bat
set JAVA_OPTS= -Dsun.rmi.dgc.client.gcInterval=900000 -Dsun.rmi.dgc.server.gcInterval=900000
Platform: Linux
File Name:JBOSS_HOME/bin/run.conf 
 JAVA_OPTS="-Dsun.rmi.dgc.client.gcInterval=900000 -Dsun.rmi.dgc.server.gcInterval=900000" 
specifies explicit collection once per 15 min instead of the default rate of once per minute.
Setting JVM memory allocation pool parameters ( Heap size )
By default, the virtual machine grows or shrinks the heap at each collection to try to keep the proportion of free space to live objects at each collection within a specific range.Setting -Xms and -Xmx to the same value. This increase predictability by removing the most important sizingdecision from the virtual machine.Choose a maximum heap size not more then 70% of the memory to avoid excessive page faults and thrashing.
C
 
for example:
Platform: Windows
File Name:JBOSS_HOME\bin\run.bat
set JAVA_OPTS= -Xms256m -Xmx1024m
Platform: Linux
File Name:JBOSS_HOME/bin/run.conf 
 JAVA_OPTS="-server -Xms256m -Xmx1024m
Setting JVM memory allocation pool parameters ( Perm size )
When user get "
 java.lang.OutOfMemoryError: PermGen space
", it means that your application doesn't haveenough memory to go on. But the rest of the message, ?PermGen space? means that it's not the commonobject heap space that it's lacking, but only the memory space for the binary code of classes and methods islacking.The term Generation comes from the concept of ?generational collection? and the term ?generationalcollection? refers to an heuristic in the garbage collection mechanism that is used to intelligently identify onlythe most probable objects for garbage collection. There are 3 kinds of Generations in the VM memory: theyoung generation, the tenured generation and the permanent generation.Objects which belong to the ?Permanent Generation? are only the binary codes of all classes and methods. So,the binary code of classes and methods are not stored in the same memory area as the object instances.?
 java.lang.OutOfMemoryError: PermGen space
? means that the virtual machine ran out of space for loadingthe binary code of classes and methods.In order to avoid
java.lang.OutOfMemoryError 
set PermSize as follows:
Platform: Windows
File Name:JBOSS_HOME\bin\run.bat
set JAVA_OPTS= -XX:PermSize=64m -XX:MaxPermSize=128m
Platform: Linux
File Name:JBOSS_HOME/bin/run.conf 
 JAVA_OPTS="-XX:PermSize=64m -XX:MaxPermSize=128m" 
S

Activity (9)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
sudeerone liked this
ratmsn liked this
vijaykumar015 liked this
Bill Mahoney liked this
sennyrocksu8043 liked this
nicc777 liked this
shekar_bandi liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->