i have deployed our application in 4GB RAM redhat linux machine;our application size is 9 MB.
after some time application gets hanging and it takes lot of time to process .in jboss-4.0.2 where to set memory options mainly GC options to reclaim memory.
presently i set like this in run.conf file
-server -Xms1024m -Xmx2048m -Xss128k -verbose:gc -Xloggc:/jboss-4.0.2/bin/gc.log -XX:+UseParallelGC -XX:+PrintGCTimeStamps -XX:+UsePerfData