Common Java programmer tool set

Source: Internet
Author: User
I found that the key reason why many people cannot solve the problem efficiently is that they are not familiar with the tool, but they are not familiar with the tool, and even do not know how to find the tool. This is a big problem. I want to list a common tool that can be used by a Java programmer.

I. coding tools

1. Ide:
Eclipse
Or idea
, Familiar with as many shortcut keys as possible ,《
List of common eclipse shortcut keys
"
2. Plug-ins:

(1)
Findbugs
It is required to perform a static code check before release.
(2)
Clover, focus on your unit test coverage rate

(3)
Checkstyle
Code style check

3. build and deploy tools:
Ant
Or Maven
Now Maven is the mainstream. Use nexus to build a Maven private server.
And continuous integration.
Jenkins
. No worries about code quality.

4. Version Management tools:
SVN
Or git

5.
Diff and patch

6. Set your eclipse or idea, such as formatter,

SAVE actions
And code template. Code style. You can use Google directly. 《
Google Style Guide
"

7. master a text editor, emacs or vim, and be familiar with common shortcut keys. This is especially useful when you need to edit code online or write code in other languages. 《
Holy War
"

Ii. JDK Problems

1. jstat: Observe GC, for example:

Jstat-gcutil PID 2000

2. view the heap status in jmap. For example, view the list of surviving objects:
Jmap-histo: Live PID | grep com. Company | less

Or dump memory is used for analysis:

Jmap-dump: file = test. Bin PID

3. To analyze the dump heap file, you can use jhat:

Jhat test. Bin

After the analysis is complete, you can view the heap status in the browser. The analysis results of this tool are still original. You can also use
Eclipse mat
Plug-ins for graphical analysis, or IBM
Heap Analyzer
.

4. jvisualvm and jconsole: Performance Analysis and Monitoring tools provided by JVM. How to use them?

Read the document by yourself.

5. jstack: analyze the thread stack, as shown in figure

Jstack pid> thread_dump

Check what the thread with the highest CPU is doing in combination with top and jstack:
Http://www.iteye.com/topic/1114219

6. For more JVM tools, see the official documentation:
Http://docs.oracle.com/javase/6/docs/technotes/tools/

7. Learn to use btrace to analyze Java runtime problems. 《
Btrace usage
"

8. GC log analysis tools:
GC Viewer
, GC-Console
Or
Select one by yourself.

9. In addition to the built-in jvisualvm, the performance analysis tool can also use commercial

Jprofiler
.

10. JVM parameter Overview

11 .《
JVM tuning standard parameter traps
, Iteye.

Iii. Linux tools

1.
Familiar with common shell commands; 2. Set SSH Login-free

3. Use
Htop replaces top.

4. Be familiar
Strace, GDB
Even systemta
P to analyze the problem.

5. Familiar with Performance Statistics tools such as vmstat, iostat, and SAR.

5. automated deployment script,
Py-Fabric
Or recommend your own
Clojure-control
.

4. Others

1. master a scripting language,
Python
Or Ruby
To efficiently solve some tasks that require quick and dirty, such as reading and writing files, importing and exporting databases, and web crawlers. Note that it is not python.com, click here.

2. Use Linux or Mac OS as your development environment.

3. Upgrade your "hardware tools", dual-screen dashboard, SSD, 8 GB memory, and more.

4. You know:
Https://code.google.com/p/goagent/

5. How to find a tool?

1. Search Engine, Google or Baidu ,《
Search Skills
"

2. omnipotent stack overflow:
Http://stackoverflow.com/

3. Humbly ask the ox.

6. The most important thing is zookeeper.

A heart that never stops learning.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.