EXETOOLS FORUM  

Go Back   EXETOOLS FORUM > General > Community Tools

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 02-24-2017, 15:53
CodeCracker CodeCracker is offline
Family
 
Join Date: Jun 2011
Posts: 81
Rept. Given: 12
Rept. Rcvd 180 Times in 35 Posts
Thanks Given: 3
Thanks Rcvd at 215 Times in 45 Posts
CodeCracker Reputation: 100-199 CodeCracker Reputation: 100-199
vmenum

vmenum - Java Stack Enumerate and print system properties
It is a java console program, execute it by java -jar VMEnum.jar
will dispaly java stack trace of select process and its system properties.
When you compile the source it require a jar reference (java path) to C:\Program Files (x86)\Java\jdk1.7.0_25\lib\tools.jar,
when you execute the compiled jar will try to get the tools.jar path and at it to java class path,
ofcourse if you have jdk installed (it is a must).
Only tested with jdk1.7.0_25.
Attached Files
File Type: zip vmenum-src.zip‎ (5.8 KB, 17 views)
File Type: zip VMEnum.zip‎ (8.3 KB, 19 views)
Reply With Quote
The Following 5 Users Say Thank You to CodeCracker For This Useful Post:
abhi93696 (04-02-2017), besoeso (02-24-2017), niculaita (02-25-2017), slogutis (04-23-2017), tonyweb (03-12-2017)
  #2  
Old 04-02-2017, 13:28
VodoleY VodoleY is offline
Friend
 
Join Date: Dec 2014
Posts: 17
Rept. Given: 6
Rept. Rcvd 1 Time in 1 Post
Thanks Given: 15
Thanks Rcvd at 1 Time in 1 Post
VodoleY Reputation: 1
Can you reupload plz?
Reply With Quote
  #3  
Old 04-02-2017, 14:33
FoxB FoxB is offline
VIP
 
Join Date: Jan 2002
Location: Earth...
Posts: 531
Rept. Given: 12
Rept. Rcvd 98 Times in 64 Posts
Thanks Given: 2
Thanks Rcvd at 178 Times in 58 Posts
FoxB Reputation: 99
@VodoleY: here
Reply With Quote
The Following 2 Users Say Thank You to FoxB For This Useful Post:
roger6 (04-11-2017), VodoleY (04-02-2017)
  #4  
Old 04-03-2017, 22:42
Mkz Mkz is offline
Friend
 
Join Date: Jan 2002
Posts: 88
Rept. Given: 0
Rept. Rcvd 2 Times in 2 Posts
Thanks Given: 1
Thanks Rcvd at 14 Times in 11 Posts
Mkz Reputation: 2
Perhaps I'm missing something, but all this (and much more) can be obtained with several binaries provided by the JDK itself:
  1. jcmd -l (or jps)
    Lists all local java processes that you can control with the rest of the commands
  2. jcmd <pid> help
    Lists all commands accepted by the target java process
  3. jinfo -sysprops <pid>
    Lists system properties for that process (-flags also available)
  4. jstack <pid>
    Fetches the thread stack traces for the process
  5. jcmd <pid> JFR.start ...
    Example of one of the commands to apply to a process (start recording info for performance tuning)
The list goes on and on.
Reply With Quote
  #5  
Old 04-04-2017, 02:32
CodeCracker CodeCracker is offline
Family
 
Join Date: Jun 2011
Posts: 81
Rept. Given: 12
Rept. Rcvd 180 Times in 35 Posts
Thanks Given: 3
Thanks Rcvd at 215 Times in 45 Posts
CodeCracker Reputation: 100-199 CodeCracker Reputation: 100-199
@Mkz:
Yes, it can be done by JDK, the source code is from JDK.
I usually use jvisualvm for that task.
The intend was to do it programmatically, (maybe change some stuffs)
this is why I included source code.
Reply With Quote
  #6  
Old 04-04-2017, 16:58
Mkz Mkz is offline
Friend
 
Join Date: Jan 2002
Posts: 88
Rept. Given: 0
Rept. Rcvd 2 Times in 2 Posts
Thanks Given: 1
Thanks Rcvd at 14 Times in 11 Posts
Mkz Reputation: 2
Quote:
Originally Posted by CodeCracker View Post
The intend was to do it programmatically, (maybe change some stuffs)
Ah, ok, in that case then it makes sense to provide source code and examples.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT +8. The time now is 03:22.


ICP05004977
vBulletin Security provided by vBSecurity v2.2.0 (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX