How can I activate the JMX remote console to debug what Java is doing?
The following assumes the default installation location was used.
- Make a backup copy of c:\webRDP-Gateway\jetty\webRDP-Gateway.lax
or /usr/webRDP-Gateway/jetty/webRDP-Gateway.lax for Linux installs.
or /usr/webRDP-Gateway/jetty/webRDP-Gateway.lax for Linux installs, using a text editor.
Find the line that starts with:
- Add the following parameters to the end of that line:
-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8004 -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.stoneware.jetty.jmx.enabled=trueSave the webRDP-Gateway.lax
- Stop/Start the webRDP-Gateway service
Using JConsole to view the webRDP Gateway Java process
From any machine running the Java JDK (not the standard JRE) of same bit level and equal to or higher than the one running in \webRDP-Gateway\jre\bin\:
Run JConsole from the Java JDK bin directory and connect to the webRDP Gateway server using the server's IP address on port 8004.
Getting a HEAP / THREAD dump using jVisualVM or VisualVM
If you need to do a HEAP / THREAD dump please see the following document*:
(*Note, you can jVisualVM in place of the separately downloaded VisualVM, as the JDK now includes jVisualVM in the bin folder.)
To shut the JMX debug off, remove the extra parameters added to the webRDP-Gateway.lax file.
Keywords: Heap Dump, Thread Dump, HotThreads, VisualVM
Old Browser Versions
Question: I am using an older browser version and am having problems. What can be done ? We are not able to upgrade the browser at this time. This is a challenge for any company that makes software that utilizes a browser. Since Stoneware does not ...
Problem: How to redirect the LCS in an environment with multiple LCSs and students connecting to them. Solution(s): Create an allow.cfg on all LCS(s) (including the Master) in the network, however, even if no allow.cfg is present on an LCS, machines ...
Time windows allows for Service Shutdown
Issue: Can the time windows gives a service to shut down before it kills the service be increased? Solution: Yes, the following information comes from the Microsoft URL : http://support.microsoft.com/kb/146092 To specify the wait time, do the ...
How to disable password saving - Internet Explorer
Having multiple methods for saving a password in the browser can cause confusion for the user. To disable password saving in Internet Explorer, launch Internet Explorer and perform the following steps. Click the blue Settings menu icon in the upper ...
How to disable password saving - Chrome
Having multiple methods for saving a password in the browser can cause confusion for the user. To disable password saving in Chrome, launch Chrome and perform the following steps. Click the Chrome menu button in the upper right corner of the Chrome ...