I recently found there is a Java process with more than 4 GB memory in my MBP, and it respawned after I force quit it.

After restarting the computer and entering safe mode, the process does not appear in. And I removed all the LoginItems of my account and cleared the path /Library/StartItems/, and restart in normal mode. Then the problem still there: a java process appeared after about a minute when entering the system. And seems the process do nothing...

activity monitor

I have no idea where the process come from and how to totally remove it.

OS: High Sierra 10.13.2

  • 1
    Please could you check in the following folders for launchd jobs: /Library/LaunchAgents, ~/Library/LaunchAgents, /Library/LaunchDaemons, ~/Library/LaunchDaemons. It is likely one of these jobs is responsible. Feel to edit and add the file names to your question. – Graham Miln Feb 9 '18 at 10:53
  • 1
    Issue the command sudo launchctl list | grep 458 This will list the service associated with that process ID. Note that the PID may change, so check activity monitor for the PID number before issuing the command. – Allan Feb 9 '18 at 12:22
  • 1
    @GrahamMiln thanks! Turns out it's the apache cassandra database daemon process. And it's in the ~/Library/LaunchAgents , added by brew start cassandra. I tried sometime ago and forgotten.. – dumeng Feb 9 '18 at 12:43
  • 1
    @Allan Thanks! Your solution works but seems have a small issue. When use sudo, the output only list process owned by root. Since the process is in my own account ~/Library/LanuchAgents, I just use launchctl list | grep xxx without sudo. – dumeng Feb 9 '18 at 12:45

You must log in to answer this question.

Browse other questions tagged .