Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

heapdump on out of memory

 
sunny kkk
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

JAVA_OPTIONS="${JAVA_OPTIONS} -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/path/OOM.log"

i've used the above command in startweblogic.sh.

1.Please check the syntax whether it is correct or not?

2.sending to a file.log will redirect ??

3.when OOM occurs heapdump will be generated. how long will it take and will it effect any load ??

thanks.
 
Matt Cartwright
Ranch Hand
Posts: 152
Linux VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
happy reading
 
Matt Cartwright
Ranch Hand
Posts: 152
Linux VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and your changes should go in setDomainEnv.sh because that is sourced by all lifecycle scripts.
When using NodeManager make sure it is configured to use scripts.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic