Questions tagged [jstat]

A JavaScript statistical library. Also a Java Virtual Machine Statistics Monitoring Tool.

jStat is a JavaScript statistical library. jstat is also a Java Virtual Machine Statistics Monitoring Tool.

75 questions
5
votes
1 answer

Sun Java jstat does not work .. sometimes !

I frequently use jstat to obtain GC related statistics. However, there are times when I simply cannot obtain any of the statistics from a JVM. It just says that it cannot find the process id, even though its the correct id. Digging slightly deeper,…
souser
  • 5,868
  • 5
  • 35
  • 50
5
votes
3 answers

If jstat is deprecated, what should I use instead?

Suddenly I've found out that jstat is deprecated: The jstat tool displays performance statistics for an instrumented HotSpot Java virtual machine (JVM). The target JVM is identified by its virtual machine identifier, or vmid option described…
shabunc
  • 23,119
  • 19
  • 77
  • 102
4
votes
2 answers

How to read the output of "jstat -gcutil ?"

I am running a JBoss server and following output belong to -gcutil tool. I am curious what is this abbreviations. /usr/java/jdk1.7.0_25/bin/jstat -gcutil 47929 S0 S1 E O P YGC YGCT FGC FGCT GCT 0.00 …
nuriselcuk
  • 515
  • 1
  • 4
  • 17
4
votes
3 answers

Full GC - Sun JVM frequency of run

In JDK 1.6 : I see that full GC has been run but the old generation and perm gen space is not used completely - question is as per my understanding FGC only runs when old gen or perm gen is full - I am not able to understand why it has run even…
Anna
  • 855
  • 2
  • 10
  • 26
3
votes
3 answers

VisualVM over Putty SSH-tunnel

I'm trying to profile remote java app, actually it is a gameserver. It works normally on my local machine (windows XP x64 with JDK1.7.0_02 x64), but behaves very wierd on the production server (CentOS with JDK1.7.0_03 i586). I've done a lot of…
Anton Boritskiy
  • 1,539
  • 3
  • 21
  • 37
3
votes
1 answer

Interpreting jstat output after tuning JVM heap size

Having recently attempted to increase the heap space and ratio of new to old gen size I'm seeing confusing results from jstat -gccapacity which is showing much smaller capacities than I would expect. The JVM (1.5.0_16) is started with -server…
SimonC
  • 6,590
  • 1
  • 23
  • 40
3
votes
2 answers

How to get non-heap "code cache" details using jstat

I want to find the non-heap memory code cache details of a remote JVM (JDK 8) running on windows from my windows machine. I can get the details using jconsole. But, what i need is to get the values using jstat command. GUI monitoring tools doesn't…
VISHNU
  • 73
  • 1
  • 9
3
votes
1 answer

Find VMID for running instance

I have a webapp running on tomcat and I want to look at garbage collection during runtime using jstat. I have the command: jstat.exe -gc 1000 How can I find what the vmid is?
Sionnach733
  • 4,686
  • 4
  • 36
  • 51
2
votes
2 answers

Where to place jstatd.all.policy

I'd like to grant permissions to my jstatd on linux The corresponding manual reads: To use this policy, copy the text into a file called jstatd.all.policy and run the jstatd server as follows: jstatd…
tsds
  • 8,700
  • 12
  • 62
  • 83
2
votes
0 answers

Connecting to Java process running as a Windows service: How does JProfiler does it?

How can I connect a trace tool like JvisualVM - not using JMX - to a Java process running as Windows service? The JVM running as service is strted When i start JvisualVM, it does not 'see' the JVM running as service: there are some unanswered…
nir laor
  • 81
  • 1
  • 4
2
votes
1 answer

Can't launch jstat : Could not reserve enough space for object heap

I have an old Jboss server, with 5go of RAM. My java app is configured like that : ...-server -Xms3200m -Xmx3500m -XX:MaxPermSize=512M... When I try to shutdown, it uses the same JAVA_OPTS as the start, so it fail. So I modify the shutdown.sh…
user2178964
  • 124
  • 6
  • 16
  • 40
2
votes
2 answers

Commands like jps, jstat, jstack, etc show " not found"

I am running Tomcat 9 on an Ubuntu 20.04 OS using OpenJDK 64-Bit Server VM (build 25.275-b01, mixed mode). When I try to gather diagnostics info using jstat, jstack, etc, I see PID not found. jps also cannot identify the Tomcat process id. I have…
Shobhana Sriram
  • 394
  • 1
  • 2
  • 14
2
votes
1 answer

jstat : Survivor and Eden Space capacity decrease over a period

Does anytime java(8) memory capacity decrease until JVM restart? I am using jstat -gc to dump memory information and here is the snapshot from two days. The second snapshot has less captaity for SC1 and EC compared to the first snapshot. Can…
Mallesh
  • 147
  • 1
  • 7
2
votes
1 answer

T-distribution with confidence level in Javascript

What's the jStat function to calculate the t-distribution with a predefined confidence level? jStat.???(1, 0.99) # == 63.67 jStat.???(10, 0.99) # == 3.17 jStat.???(1, 0.95) # == 12.69 http://uregina.ca/~gingrich/tt.pdf
Sig
  • 5,476
  • 10
  • 49
  • 89
2
votes
1 answer

Unable to Connect to a Remote JVM using JStat

From the Jstat Documentation , jstat can be connected to a local as well as remote JVM. The URI can be formed as [protocol:][//]lvmid[@hostname[:port]/servername] I have a JVM running on one of the servers (CentOS) with JMX enabled - xyz 23878 …