Got a Java process with about 4 GB memory consumption after just starting up macOS 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...



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

OS: High Sierra 10.13.2
Yes, Allan's solution in his comment

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.

worked very well (In this case as the rogue process was run as the current user this worked without &quot;sudo&quot; also).
For me also it is Cassandra which is consuming the memory.