Here is a sample to connect Tomcat JMX and display some server session status. If authentication is required, we add few lines to put on authentication credentials.
If you experience error message “Access denied! Invalid access level for requested MBeanServer operation”, this may lead to a problem of lack of enough permission when you invoke MBean method. To solve it, edit jmxremote.access file. Find the user you… Continue Reading
If you need to obtain server statistical data from Tomcat, you probably have to get it via Tomcat JMX. It’s pretty straight-forward to take a glance of what the current Tomcat server status with the JMX func by Tomcat. Tomcat… Continue Reading
If Tomcat fails to start and the log shows “java.lang.OutOfMemoryError”, that means the default Tomcat configures a low memory quota you can use. The web instance actually requires higher memory but failed to have enough capacity. The result is “java.lang.OutOfMemoryError.”… Continue Reading
If your gnome panel is missing, here are some steps you may try to get it recovered. (The following commands are tested in CentOS 6 environment.) Reinstall gnome-panel After reinstall gnome-panel and reboot, you can continue to try the following… Continue Reading
If you experience compiling error: pngfix.c:2182: undefined reference to `inflateReset2′ this means the library is missing. To resolve it, create some environment variables so that the compiler can find the library.
How to increase the booting bios screen delay period in VMware? Simply find a xxxxxx.vmx file inside your VM directory. Edit it. Modify or add one line such as Notice. 10000 refers to 10 seconds
When you run a program in Linux, you may experience error of: error while loading shared libraries: xxxxxx.so.yy: cannot open shared object file: No such file or directory There are couple solutions. Solution 1 Set environment variable LD_LIBRARY_PATH pointing to… Continue Reading
In Linux, we sometimes experience confusing situation in executing programs. For a program, we may have different versions installed by Linux distribution itself and by root user or somebody else. As a result, executable programs with the same name locate… Continue Reading
People may see many bin directories on Linux systems and may be wondering what each directory is. Here we take a talk about them. /bin This is to hold executable files which are needed by other programs before /usr/bin is… Continue Reading