Processes started and running fine, but running processes are not listing in jps

Today I met a strange issue while installing hadoop on a linux machine.

I started all the processes, it was working fine also, but those processes were not listed in jps. I struggled with issue for some time, later I found the solution. The reason was because, some files like hsperfdata_<username> were present in /tmp folder. I deleted those files, after that jps listed all the running processes.. 🙂

Actually this hsperfdata_ is a feature Not bug. It’s a log directory created by jvm while running and its a part of Java performance counter. This folder created inside tmp folder of any operating system by default.
JVM uses this folder for process monitoring.
This folder contains perfdata corresponding to java process id running from user mentioned in hsperf Data folder name.

Advertisements

About amalgjose
I am an Electrical Engineer by qualification, now I am working as a Software Engineer. I am very much interested in Electrical, Electronics, Mechanical and now in Software fields. I like exploring things in these fields. I like travelling, long drives and very much addicted to music.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: