Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9289431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T20:10:38+00:00 2026-06-18T20:10:38+00:00

I am a newbie to linux. I am trying to find a command that

  • 0

I am a newbie to linux. I am trying to find a command that displays
pid and java class.

I tried:

ps -C java -o pid 

but it only showed me pid, not java classes.

So I used a different command:

ps -ef | grep java"  

It showed me a full library of JAR files and associated java classes. However, I don’t need all of that information, I need only to display pid and java class.

The problem that I am facing is that sometimes the java processes take like 100M of memory and I can only know the pid with the command java on it by using linux command:

top

But it couldn’t find which java program is the one responsible for this. It will help me to debug that java file for memory leak.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T20:10:40+00:00Added an answer on June 18, 2026 at 8:10 pm
    ps aux | grep java
    

    try this command and you can list of java process.
    [or]

    JPS will be helpful

    JPS,JSTAT,JMAP,JSTACK,JHAT

    you can run jps command it will show the pid value and based on these pid value others command will be executed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm newbie in mobile development. cocos2d-x Tutorials says: But please note that linux port
Ok newbie linux question here but i cant for the life of me find
I'm a linux newbie coming from a Windows background and I am trying to
I have a newbie Linux programming question. Suppose I have a project that uses
Linux newbie question I guess.. How can I find out where gem installs the
I tried default Passenger Nginx installation steps, but it couldn't succeed, I am newbie
I'm newbie on both ruby and linux, so I'm sure this is trivial but
I am a newbie in APE. I have a linux machine that runs the
This is probably a newbie's escaping problem. I'm trying run command in a for
I'm a bit of a PHP newbie, but I'm trying to put some include

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.