Questions tagged [jstatd]

29 questions
19
votes
2 answers

Starting jstatd in Java 9+

In the past, I have started jstatd via a security policy file, as suggested here: https://stackoverflow.com/a/14930180/1294116 However, in Java 9+, they have removed the tools.jar file, which means that this solution no longer works. Does anyone…
Cobra1117
  • 1,150
  • 3
  • 11
  • 26
11
votes
4 answers

jvisualvm connect to remote jstatd not showing applications

I started a jstatd on the remote server (Ubuntu Server 14.04): jstatd -J-Djava.security.policy=.jstatd.all.policy -J-Djava.rmi.server.logCalltrue -p 9099 and try to connect to it with jvisualvm on windows. I checked netstat, the connection is…
zorro
  • 165
  • 1
  • 3
  • 11
6
votes
2 answers

VisualVM shows "Not supported for this JVM"

I am trying to profile a remote JVM with VisualVM 1.4. I am running macOS High Sierra 10.13.6 locally, with the following OpenJDK version: java -version openjdk version "1.8.0_181" OpenJDK Runtime Environment (AdoptOpenJDK)(build…
Yanick Nedderhoff
  • 1,174
  • 3
  • 18
  • 35
5
votes
0 answers

can't start jstatd with all access policy

I'm trying to start jstatd on my server but I keep getting this error: [ec2-user@ip-204-95-69 bin]$ sudo jstatd -J-Djava.security.policy=/home/ec2-user/logstash-5.2.0/bin/jstatd.all.policy java.security.policy: error adding Entry: …
lightweight
  • 3,227
  • 14
  • 79
  • 142
3
votes
1 answer

difference between jstats and jmx in visualvm

I am using visualvm to monitor my production server which has both jmx and jstatd. I tried both protocol in visual vm but seems very identical, is there any difference using jmx or jstatd to monitor a server (in term of monitoring possibility,…
jpprade
  • 3,497
  • 3
  • 45
  • 58
3
votes
3 answers

Viewing MBeans through jstatd

I am trying to monitor all Java processes running on a server via jstatd. I've got it set up enough that I can connect with VisualVM and see all running processes. Most displays work fine, however certain things (especially CPU usage and MBeans)…
Steven Schlansker
  • 37,580
  • 14
  • 81
  • 100
3
votes
0 answers

How can I monitor via jvisualvm and jstatd processes of all users?

I updated to java 1.8_66 and got following problem. When I run locally jvisualvm I can monitor (it's meaning connect to process) only processes running under me. When I start sudo jvisualvm, I can monitor only root processes. And I got such problem…
3
votes
1 answer

Jstatd connection issues

Having a little trouble connecting jstatd with visualvm. Below is a break down of my settings: jstatd.policy grant codebase "file:/usr/java/jre1.7.0/lib/tools.jar" { permission java.security.AllPermission; }; Called With jstatd -p 9999…
Chris Samson
  • 179
  • 1
  • 12
2
votes
1 answer

How to force or predict the second open port of jstatd?

If you want to start jstatd on a specific port for its RMI registry, you can pass -p parameter for this. But the problem is that it opens a second random port (called "anonymous port" in java) which causes problem for writing firewall rules or to…
Anthony O.
  • 22,041
  • 18
  • 107
  • 163
2
votes
2 answers

Visual GC in Java VisualVM via jstadt for remote Tomcat

I'm trying to get the memory layout of a remote Tomcat visualized with Visual GC in Java VisualVM. On the Linux server which hosts the Tomcat jstatd is running (including tools.policy and the proper [-J]-Djava.rmi.server.hostname=[SERVER_IP], which…
Benjamin Seiller
  • 2,875
  • 2
  • 32
  • 42
2
votes
1 answer

console client for jstatd/visualgc

VisualVM/VisualGC provides quite a lot of useful GC-related metrics in real-time, but I want a command-line tool that can connect to a remote application via jstatd and record in CSV or XML ideally exactly the same metrics as VisualGC provides. It…
pavel
  • 377
  • 2
  • 11
1
vote
1 answer

How to build an ARM Gnueabi openjdk11 JRE with JMX support

I've successfully build an openjdk 11 JDK for my target board (based on Gnueabi ARM). Then with JDK Jlink I successfully created a custom JRE which I was able to run on my target. Now I'd like to remote debug with JStatd or JMX, but when I start…
Sbon
  • 11
  • 4
1
vote
1 answer

Grafana - Number of requests exceeds SLA

I would like to have a bar chart in Grafana with number of requests exceeds SLA. Is there a function or how can I achieve this?
1
vote
0 answers

jstatd does not exist

I am running Tomcat 6.0 in my Ubuntu server. Recently I noticed there is a possibility of memory leak. So I want to use Java Memory Profiler. But I can't find 'jstatd' in my $JAVA_HOME. I am using java-6-openjdk-amd64 and existing files are as…
1
vote
0 answers

Linux remote server: jstatd network unreachable

I'm trying to open a jstatd connection on my remote linux server, but whenever I try to run jstatd it gives me this error: Could not bind /JStatRemoteHost to RMI Registry java.rmi.ConnectIOException: Exception creating connection to:…
DpDaan
  • 11
  • 3
1
2