File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

enabling gc logs

 
sunny kkk
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 42
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
add the above mentioned verbose script in startManagedWebLogic.sh
 
sunny kkk
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

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

thanks.
 
sunny kkk
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It was solved by adding below script..

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

thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic