today to demonstrate a web system, in the course of the demonstration, the system suddenly reported 500 errors, logging on to the server found that the CPU occupancy rate to 103%, immediately kill the process and then restart, to complete the demonstration process. After the demo is over, Immediately start a memory leak related work to ensure that this emergency does not occur next time. Jprofiler is a good memory detection software. development system IDE with MyEclipse 2014, in my blog before the introduction, how to install in Ubuntu, here is the introduction of integrated Jprofiler.
1. Download Jprofiler,wget http://download-aws.ej-technologies.com/jprofiler/jprofiler_linux_8_1_2.tar.gz
2. Unzip Jprofiler TAR-XVF jprofiler_linux_8_1_2.tar.gz
3. Enter the directory to start the JPROFILER,CD Jprofiler8/bin,./jprofiler. Start the installation Select Next, select Trial in the serial number
After the installation is complete Jprofiler, you need to integrate into the myeclipse, first see the MyEclipse installation directory in the readme/readme_eclipse.html file corresponding eclipse version is eclipse-4.3.0, such as:
Integrate Jprofiler into the Myeclispe plugin:
1.session->ide intergrations->eclipse 4.3->intergrate-> Select MyEclipse installation directory->choose->ok
2. Run Tomcat first, then click Myeclipse->windows->customize Perspective, then click Run->attache jprofiler to run JVM and run the plugin
3. Select the first, which is to analyze memory usage running in the current Tomcat, such as:
MyEclipse 2014 integration with Jprofiler to analyze the memory usage of Web project