File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes enabling gc logs Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Reply Bookmark "enabling gc logs" Watch "enabling gc logs" New topic
Author

enabling gc logs

sunny kkk
Greenhorn

Joined: Dec 01, 2012
Posts: 5
hi all,

I've enabled the gc logs in startWeblogic.sh with below script.

this script is redirecting the gc logs. but which servergc log it is redirecting??
if it is admin server, how to redirect the managedservers gc logs??


JAVA_OPTIONS="${JAVA_OPTIONS} -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:/path/.log

thanks in advance..
kona krishnakumar
Ranch Hand

Joined: Dec 03, 2011
Posts: 30
add the above mentioned verbose script in startManagedWebLogic.sh
sunny kkk
Greenhorn

Joined: Dec 01, 2012
Posts: 5
hi

i have 5 managed servers, how to to redirect MS logs into 5 different files.??

thanks.
sunny kkk
Greenhorn

Joined: Dec 01, 2012
Posts: 5
It was solved by adding below script..

JAVA_OPTIONS="${JAVA_OPTIONS} -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -Xloggc:/path/${SERVER_NAME}_gc.log"

thanks
 
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: enabling gc logs
 
Similar Threads
memory arguments in start up script
"Gaps" in GC-log
OutOfMemoryError: java heap size while starting jboss4.2.2 in solaris
OutOfMemmory Error
Java out of memory exception