Use the JDK's own running monitoring tool jconsole to observe and analyze the operation of the Java programOriginal linkFirst, what is Jconsole?JConsole has been introduced from Java 5. JConsole is a built-in Java Performance Analyzer that can be run from the command line or in the GUI shell. You can easily monitor
Anti-compiler tool Jad simple usage
The following assumptions Jad.exe under the C:\java directory
First, basic usage
Usage:jad[option (s)]
Enter the class file name directly and support wildcard characters, as shown below.
C:\java\>jad Example1.class
C:\java\>jad *.class
The result is to decompile the Example1.c
Introduction to Java Heap dump file analysis tool jhat, heapjhat
Jhat is a Java heap Analyzes Tool ). after JDK6u7, it becomes standard. this command requires some Java development experience. The official website does not provide technical support and customer service for
Elegant Java Tool Library LombokRecently in the company's project to see the application of the Lombok, through the @data annotations annotated Pojo, omit a lot of getter/setter code, the original long pojo in thin body directly become clean, refreshing, programmers no longer need to pay attention to the length of the method, You just need to focus on the field.Lombok IntroductionLombok is a very useful lib
There are 2 tool set combinations for Java bytecode editing.
1. ASM + JasminFirst use ASM to disassemble the bytecode class file to assemble file. (See command line under ASM folder)Then use Jasmin language specification to rewrite this class file and then compile this class file. (See command line under Jasmin folder)Specification: http://jasmin.sourceforge.net/instructions.htmlAdvantage:These 2 tools are
Log cleanup is very important for routine server maintenance. If too many logs are left, disk space is seriously wasted and service performance is affected. Manual cleanup may take too much time and is difficult to meet actual requirements. For example, how do I cut a log file larger than 2 GB at every Saturday and keep the latest MB log records?
No log cutting tool can meet the requirements of this seat on the Internet, so I spent some time writing
Batch file tool (Java+shell command implementation)There are a bunch of corpora that need to be processed before they can be used, and should be directly handled directly with shell scripts. But not familiar with shell scripts, only a few simple commands. Therefore, it is implemented using the Java+shell command.Perhaps it's best to use shell scripting directly.
Java Decompiler "Java Anti-compilation": The Development of the Anti-compilation tool, you can easily view the *.class file source code. Here are a few ways to view the source code: Tools Plugins1, Jd-guiJd-gui is a graphical interface tool that displays Java source code *.
Java-based Oracle database self-built tool Library
When I learned how to operate Oracle databases in Java, I suddenly thought that I could create a tool class like php, which could greatly reduce the complexity of the Code. It can also improve work efficiency.
If java cannot
Label:When learning the Java operation of the Oracle database, it occurred to me that it would be possible to build a tool class like PHP, which would greatly reduce the complexity of the code. can also improve productivity. Java If you can not build a tool class, it is very ridiculous, but, in the process of establish
1. Official feature139:enhance Javac to Improve Build speed.199:smart Java Compilation, Phase2. Instructions for useThe first phase of the Smart Java Compilation tool (Sjavac) starts with the JEP139 project, which is used to increase the compilation speed of the JDK in the case of multi-core processors. Today, the project is in the second phase, JEP199, to improv
C Java PHP Perl Python program source code formatting (beautification) ToolC, c ++ c #=> indent Astyle
Java ==> astyle Jalopy jacbe ImportScrbber
Php ==> phpCodeBeautifier
Perl ==> perlTidy
Python ==> Pydent
Introduction to several open-source code beautification tools
Tool Name Language introduction install/use indent c indent is synonymous with code beautificat
classThe Math class provides a number of methods for mathematical operations The math class is the final class and therefore cannot inherit from the math class the methods in the math class are static methods, so it is not necessary to create an object of the math class You can use the method of the class directly(i) Constants in the Math classpublic static final Double PIpublic static final Double PI(ii) Common methods in the Math classSeven, date class(i)Date classjava.util.Date. The da
Jar-Java archiving Tool
Merge multiple files into a single JAR file.
Structure
jar [ options ] [manifest] destination input-file [input-files]
Description
The jar tool is a Java application that combines multiple files into a single jar archive file.JarIs a versatile archive and compression
, when we visited our project, some static resources such as new classes were loaded into the JVM. This is also confirmed by a graph of the number of loaded classes in 5.4.5.4. Tomcat Load class case6. With the use of JmapFind us first the PID of the Tomcat process is 13863 and then execute jmap-heap 13863:The basic of the Heap Configuration is the ones we just match, such as Maxheapsize is 2048 mb,maxpermsize is MB. This is the same as in 5.1.Resources
Sun
Using HttpURLConnection in Java to upload files, we actually just know the standard format of the HTTP protocol upload file. Then you can use any language to simulate the browser to upload files. Here are a few articles from the HTTP protocol beginning to introduce the Java upload files.
Java uploading files using HttpURLConnection
Uploading
Java Performance Troubleshooting tools:The 1.jconsole was launched with JDK 1.5. This is a Java monitoring and management Console-JMX compatible graphics tool to monitor Java virtual machines. It is capable of monitoring both local and remote JVMs. Details can be viewed: Jconsole T
Need to use Java to write an FTP tool, because only a little Java foundation, but because a few years do not, almost is not, had to do a little bit, fortunately can pick up.
However, because of the use of Javac in Linux to compile, not in WIN under the IDE to do these things, so in the run and compile a little time, but it is because of some of the
easier it is to add new product features. Tools such as Checkstyle can help find places that can affect maintainability, conflict with coding standards, such as large classes, too long methods, unused variables, and so on.
about PMDAnother Open-source tool, called PMD, provides similar functionality as Checkstyle. I prefer Checkstyle, but PMD also has a lot of followers, so I suggest you take a look at t
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.