Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / December 2007

Tip: Looking for answers? Try searching our database.

how to obtain heap dump on demand on windows and JRE 1.5.0_9 ?

Thread view: 
Michal Slocinski - 07 Dec 2007 16:36 GMT
Hi,

I was searching through the web but cannot find answer for that
problem.

Client is running application on Windows using JRE 1.5.0_9 (no chance
to change OS or JVM version). Due to that fact I cannot use any of
following options:
- Ctrl + Break is introduced in 1.5.0_14
- jmap is not available on Windows JVM 1.5

Are there any other options or tools I could use? I would much prefer
creating a dump file over connecting to live system remotely with some
memory profiler.

Michal
Thomas Fritsch - 07 Dec 2007 17:33 GMT
> I was searching through the web but cannot find answer for that
> problem.
[quoted text clipped - 8 lines]
> creating a dump file over connecting to live system remotely with some
> memory profiler.
I googled for
 "Ctrl + break" signal
and found
 <http://www.latenighthacking.com/projects/2003/sendSignal/>
Looks like this is what you need.

Signature

Thomas

Michal Slocinski - 07 Dec 2007 17:46 GMT
On Dec 7, 5:33 pm, Thomas Fritsch <i.dont.like.s...@invalid.com>
wrote:
> > I was searching through the web but cannot find answer for that
> > problem.
[quoted text clipped - 17 lines]
> --
> Thomas

This would be pretty good - however - as I said, this is JVM 1.5.0_9
and Ctrl+Break for heap dumps is introduced in 1.5.0_14:
http://java.sun.com/j2se/1.5.0/ReleaseNotes.html
http://java.sun.com/j2se/1.5/pdf/jdk50_ts_guide.pdf

Michal
Thomas Fritsch - 07 Dec 2007 18:41 GMT
>>I googled for
>>  "Ctrl + break" signal
[quoted text clipped - 11 lines]
>
> Michal
You are right, sorry! I overlooked that you mentioned this in your first
post already.

But I tested with "AdaptJ's StackTrace"
<http://www.adaptj.com/root/main/stacktrace> (also mentioned on the web
site of my first reply).
My test application was a little Swing app (running with JDK 1.4.2,
started from within eclipse IDE, as a javaw.exe process)
The StackTrace tool itself was running via WebStart with Java 1.6.0.

Surprisingly the tool (click "Process - Select", and then "Process -
Thread dump") was able to get a thread dump from my Java 1.4 app.

I know this is not quite what you wanted, but at least it is more than
nothing.

Signature

Thomas

Michal Slocinski - 07 Dec 2007 23:30 GMT
On Dec 7, 6:41 pm, Thomas Fritsch <i.dont.like.s...@invalid.com>
wrote:

> >>I googled for
> >>  "Ctrl + break" signal
[quoted text clipped - 30 lines]
> --
> Thomas

Thanks for help. Actually thread dump (stack traces) you can get in
1.4 - this is documented feature. For my problems I found an option
which sounds to fit my requirements:
http://java.sun.com/developer/technicalArticles/Programming/HPROF.html.
Maybe not 100% but should be pretty good, I'll give it a try next
week.

cheers,

Michal
Lew - 08 Dec 2007 01:39 GMT
>>> This would be pretty good - however - as I said, this is JVM 1.5.0_9
>>> and Ctrl+Break for heap dumps is introduced in 1.5.0_14:

There was a security flaw found in Java which for Java 5 was fixed in Java 5
update 10.  You should definitely upgrade to the latest Java 5 (if not all the
way to 6).

<http://sunsolve.sun.com/search/document.do?assetkey=1-26-102934-1>

Signature

Lew



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.