Monday, December 12, 2011

Java Heap Analysis Tools

Below is the list of tools provided by jdk version 1.5-1.6 for heap snapshot generation and analysis -

jvisualvm

Java Virtual Machine Monitoring, Troubleshooting, and Pro-filing Tool. Java VisualVM is an intuitive graphical user interface that provides
detailed information about Java technology-based applications (Java
applications) while they are running on a given Java Virtual Machine
(JVM(*)). The name Java VisualVM comes from the fact that Java VisualVM
provides information about the JVM software visually

jhat (Java Heap Analysis Tool)
The jhat command parses a java heap dump file and launches a webserver.
Jhat enables you to browse heap dumps using your favorite webbrowser.
jhat supports pre-designed queries (such as 'show all instances of a
known class "Foo"') as well as OQL (Object Query Language) - a SQL-like
query language to query heap dumps.

Syntax: jhat
eg: jhat /Users/mayankmohan/heap.bin.hprof.bin

jconsole
The jconsole command launches a graphical console tool that enables you to monitor and manage Java applications and virtual machines on a local or remote machine.

jmap
jmap prints shared object memory maps or heap memory details of a given process or core file or remote debug server.

Syntax: jmap -dump:live,file=
eg: jmap -dump:live,file=heap.bin

Saturday, December 3, 2011

List of sites for reference on GWT

GWT - 2.1, 2.2 & 2.3

Activities & Places

http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html

TabLayout Panel - auto resizing

http://www.coderanch.com/t/493012/GWT/TabLayoutPanel-auto-height-grow-gwt

Using custom css for styling in tab panel layout

http://code.google.com/p/salvadordiaz/source/browse/trunk/gwt-exception-handler/src/fr/salvadordiaz/gwt/client/BlocImage.ui.xml?spec=svn56&r=56




@External gwt-Image,gwt-CheckBox,gwt-TextBox,gwt-TextArea;
.container{
}
.container .gwt-Image,
.container .gwt-TextArea{
display:block;
}
.container .gwt-CheckBox,
.container .gwt-TextBox,
.container .button {
display: inline;
width:25px;
vertical-align: middle;
margin: 5px 10px 5px 10px;
}
.container .first{
margin-left:0px;
}
.container .last{
margin-right: 0px;
}


Place History Handling mechanism for URL with multiple arguments -

http://comments.gmane.org/gmane.org.google.gwt/73450

CheckBox Cell - Checkbox ticking to be controlled via ticking outside a checkbox

http://stackoverflow.com/questions/8015013/checkbox-cell-and-selectable-cell-table-rows