Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Choose place for memory dump #232

Closed
GoogleCodeExporter opened this issue Jun 21, 2015 · 4 comments
Closed

Choose place for memory dump #232

GoogleCodeExporter opened this issue Jun 21, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

Hello

May be I didn't search enough, but I still found no answer.

As I generate a heap dump from my javamelody interface (ver 1.35.0), it is 
automatically placed in tmp dir from the server.

As I work in an organization where server are under someone else responsibility 
and I don't have rights to go in tmp myself, I have to ask to get them.

Is it possible to configure the place where this dump should go, if not, could 
this features be added?

(may be like as statistics files can be configured in web.xml)

Thanks for advance for any help 

Original issue reported on code.google.com by yoplaitd...@gmail.com on 21 Jun 2012 at 1:44

@GoogleCodeExporter
Copy link
Author

Original comment by evernat@free.fr on 21 Jun 2012 at 7:04

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

Just for information, the location of the heap dump file is not configurable at 
the moment.

Original comment by evernat@free.fr on 16 Sep 2012 at 2:28

@GoogleCodeExporter
Copy link
Author

In fact, a VM option named HeapDumpPath exists in Hotspot (Oracle JDK).
Ref: 
http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html

And I would consider it a bug if it is not used as the directory of heap dump 
files. 

Original comment by evernat@free.fr on 20 Sep 2013 at 8:26

  • Added labels: Type-Defect
  • Removed labels: Type-Enhancement

@GoogleCodeExporter
Copy link
Author

This is now fixed.
It's committed in trunk (revision 3510) and ready for the next release (1.47).
You will be able to add -XX:HeapDumpPath=/tmp for example, in the java command 
line to specify the directory of the heap dump files. Otherwise the directory 
will be the temporary directory of the server as before.

I have a new build from the trunk including the fix and it is available at:
https://javamelody.googlecode.com/files/javamelody-20130920.jar

Original comment by evernat@free.fr on 20 Sep 2013 at 8:40

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant