Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat on AIX producing huge heapdump, snap and java core files

 
Vincent Sam
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Tomcat 6 on AIX and recently a runaway process caused huge files, consumed file space and crashed the server. While I realize that these files could be used to analyse the cause I'm looking to redirect these files where larger filespace is available. Any ideas on how this is controlled?

Regards,

Vince
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This has more to do with the Java runtime parameters than anything specific to Tomcat. By default such dump files are generated in the folder from where the Java process was initiated (TOMCAT_HOME/bin for example). But there are certain parameters that you can set while starting the server (which actually instantiates a Java process). It depends on which Java vendor you are using. If you are using Sun/Oracle JVM then take a look at this documentation http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html (search for -XX:ErrorFile on that page).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic