HPROF A Heap / CPU profiling Tool

HPORF is actually used to work out which parts of a program are using the most memory or processor time.  To improve the efficiency of our application we should know what part of the code are using large amount of memory and CPU resource.

Built-in function in Python Script

Python has a few other built-in functions for working with numeric types they are listed below.

  • Absolute value—abs
  • Convert two numbers to a common type—coerce(x, y)
  • Quotient and remainder—divmod(a, b)
  • Power—pow(x, y [, z])
  • Round—round(x [, n])

Numeric Operator in Python script

We can use these Python operators when we work with numeric data types.

 List of the Numeric Operators

Numeric Types in Python

Python has four built-in numeric data types they are integer, long integer, floating point numbers and imaginary numbers.

How to read GC Logs

Let see how to read GC logs. In this post we will see how to get GC logs with following debug flags like -verbose:gc and  XX:PrintGCTimeStamps compare the GC output.

Starting J2EE App with Eclipse IDE

When we are talking about the J2EE Application it can be Enterprise application, EJB and web application etc.

In this post we will try to see how to create Enterprise application and include a web application.

Jstack- Stack Trace

Jstack  prints Java Stack traces of java Threads for a given java process or core file or a remote debug server.  For each java frame, the full class name, method name, byte code index and line number, if available are printed.  With the –m option, jstack prints both Java and native frames of all threads along with the program counter.  


TCP/IP is standard protocol for all type of communication between computers.  IP (Internet Protocol) provides functionality at the network layer (addressing and routing) while TCP (Transmission Control Protocol) provides (virtual) end-to-end connectivity.  The TCP/IP family includes a host of other useful protocols such as ICMP (Internet Control Message Protocol), IGMP (Internet Group Management Protocol) and UDP (User Datagram Protocol).  But majority of today’s networks use TCP/IP only. 

Netstat (Network Statistics)

Netstat is a command line utility to display network connections (Incoming and Outgoing), routing tables, and a network interface statistic.  This Utility available on Unix, Unix-like and Windows-NT based OS.

How to repair and do recovery when LDAP corrupted

Most of the times we experiencing LDAP errors like authentication fails or any application reports “Cannot connect to LDAP Servers!”) and most of the time we tried to restart the LDAP server by running “/etc/init.d/ldap” but we miss recovery pattern.

Debugging Stand alone code using Eclipse

Debugging stand alone code using eclipse

Users who are very much new to java and its development and they want to know how to trace the code and its behavior then I recommend to use Debug Mode while using Eclipse IDE.

JDK Security Debugs

Security Debugging

The Java security packages include debugging code that you can enable via a system property.

The property in question is java.security.debug, and it may be set to the following values:

Eclipse Shortcut Keys

Let see few Short-cut keys used in Eclipse IDE.
Note: Few keys will vary from different type of Eclipse Editors.
Eclipse Shortcut Keys

Eclipse Open Perspective

Lets see how to change Eclipse perspective for Java and J2ee type of eclipse.

  • To check Open Perspective we need to move for following direction

How to run simple java code using eclipse IDE

Steps to follow

·         First Download eclipse
·         Write a very simple Hello world java code.

Let start Journey: