You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2010/12/24 06:29:39 UTC

DO NOT REPLY [Bug 50518] New: jps.exe and jvisualvm.exe cannot detect tomcat using jdk1.6.0_23

https://issues.apache.org/bugzilla/show_bug.cgi?id=50518

           Summary: jps.exe and jvisualvm.exe cannot detect tomcat using
                    jdk1.6.0_23
           Product: Tomcat 7
           Version: unspecified
          Platform: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: zhouyanming@gmail.com


jdk1.6.0_20 works fine,maybe this is a bug of jdk1.6.0_23
I hope tomcat team could explain why,thanks.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 50518] jps.exe and jvisualvm.exe cannot detect tomcat using jdk1.6.0_23

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50518

--- Comment #9 from Konstantin Kolinko <kn...@gmail.com> 2011-01-07 18:35:22 EST ---
(In reply to comment #8)
> I've added a known issues section to the FAQ.

For reference:
The known issues FAQ page is [1].
The Sun/Oracle bug page for this issue is [2].

[1] http://wiki.apache.org/tomcat/FAQ/KnownIssues#OracleJREIssues

[2] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7009828

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 50518] jps.exe and jvisualvm.exe cannot detect tomcat using jdk1.6.0_23

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50518

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |INVALID

--- Comment #8 from Mark Thomas <ma...@apache.org> 2011-01-04 07:37:45 EST ---
Yep - this is a JVM issue, not a Tomcat bug. I've added a known issues section
to the FAQ.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 50518] jps.exe and jvisualvm.exe cannot detect tomcat using jdk1.6.0_23

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50518

Martin Kuba <ma...@ics.muni.cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |

--- Comment #2 from Martin Kuba <ma...@ics.muni.cz> 2010-12-30 08:36:00 EST ---
This is a bug. I can confirm that the same happens with Tomcat 6.0.26.

This problem is specific to Tomcat and jdk 1.6.0_23. All other applications I
have tried are reported to jps and jvisualvm without problems. It also works
for Tomcat and jdk 1.6.0_22. Please note that a new JVM version 19.0 was
introduced in 1.6.0_23.

I have tracked down the problem to the fact that both jps and jvisualvm detect
running JVMs by looking into /tmp/hsperfdata_$USER directory, which is created
automatically by all SUN JVMs since JDK 1.4.0_02.  

For some unknown reason the JVM running Tomcat does not create the files in the
/tmp/hsperfdata_$USER directory. Even using -XX:+UsePerfData doesn not help.

This bug prevents monitoring production servers running Tomcat with jvisualvm.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 50518] jps.exe and jvisualvm.exe cannot detect tomcat using jdk1.6.0_23

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50518

--- Comment #5 from Mark Eggers <md...@gmail.com> 2010-12-30 15:04:37 EST ---
This looks like fallout from the following:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6938627

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 50518] jps.exe and jvisualvm.exe cannot detect tomcat using jdk1.6.0_23

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50518

--- Comment #7 from Konstantin Kolinko <kn...@gmail.com> 2010-12-30 16:24:33 EST ---
Thank you for your investigation.

Looks like something that we cannot fix, but we may mention it in
RELEASE-NOTES, or on the FAQ page on the Wiki site (editable by everyone). It
is a regression in JDK and concerns not only Tomcat, but any java application
that runs with its own value of java.io.tmpdir.

(In reply to comment #3)
> A very short investigation shows the issue.
> 
> 1) Tomcat specifies -Djava.io.tmpdir=$CATALINA_BASE/temp in its JVM options.

Note, that if you are using catalina.(sh|bat) to start Tomcat, then the path to
the temporary directory can be customized by setting the "CATALINA_TMPDIR"
environment variable.

One can set it either before running the scripts, or in a bin/setenv.(bat|sh)
file.

> 2) Java 6 Update 23 places the hsperfdata_$USER directory in this directory
> rather than in the normal location where jps, visualvm, etc, expect it.
>

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 50518] jps.exe and jvisualvm.exe cannot detect tomcat using jdk1.6.0_23

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50518

--- Comment #10 from Jackie Rosen <ja...@hushmail.com> ---
*** Bug 260998 has been marked as a duplicate of this bug. ***
Seen from the domain http://volichat.com
Page where seen: http://volichat.com/adult-chat-rooms
Marked for reference. Resolved as fixed @bugzilla.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 50518] jps.exe and jvisualvm.exe cannot detect tomcat using jdk1.6.0_23

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50518

--- Comment #3 from Jess Holle <je...@ptc.com> 2010-12-30 09:06:07 EST ---
A very short investigation shows the issue.

1) Tomcat specifies -Djava.io.tmpdir=$CATALINA_BASE/temp in its JVM options.
2) Java 6 Update 23 places the hsperfdata_$USER directory in this directory
rather than in the normal location where jps, visualvm, etc, expect it.

It looks like Oracle needs to either undo this change or provide a means of
decoupling these directories, e.g. a temp dir setting that does *not* change
the hsperfdata location.

I believe this is a bug in Java 6 Update 23.  If hsperfdata is to be placed in
other locations then jps, visualvm, etc, must know how to find it.  This seems
unreasonable, so I'd conclude that the hsperfdata location should not be
impacted by the java.io.tmpdir setting.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 50518] jps.exe and jvisualvm.exe cannot detect tomcat using jdk1.6.0_23

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50518

--- Comment #6 from Pid <bu...@pidster.com> 2010-12-30 16:23:56 EST ---
We can close this issue then, as this is a Java problem and not Tomcat
specific?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 50518] jps.exe and jvisualvm.exe cannot detect tomcat using jdk1.6.0_23

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50518

--- Comment #4 from Mark Eggers <md...@gmail.com> 2010-12-30 14:51:11 EST ---
I briefly tested a temporary work-around.

Launch visualvm as follows:

visualvm -J-Djava.io.tmpdir=(Tomcat temp directory)

There are some caveats. The user running visualvm has to have the correct
permissions in order to read the hsperfdata_xxxx data. That instance of
visualvm will not be able to monitor other Java processes on the system.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 50518] jps.exe and jvisualvm.exe cannot detect tomcat using jdk1.6.0_23

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50518

Pid <bu...@pidster.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID
         OS/Version|                            |All

--- Comment #1 from Pid <bu...@pidster.com> 2010-12-24 05:29:47 EST ---
Bugzilla is not a support forum. Please ask this question on the Tomcat Users
mailing list.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org