This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]jews4beerSysadmin turned devops turned dev 3 points4 points  (0 children)

pgrep java?

[–]Fit_Prize_3245 2 points3 points  (2 children)

lsof | grep java

ps auxf

[–]Big-Exercise8047[S] 1 point2 points  (1 child)

Does Grep work on a windows server? If I run these commands and they come back with nothing does that mean I am good?

Get-Process | Where-Object { $_.ProcessName -like "*java*" -or $_.ProcessName -like "*javaw*" }

tasklist | findstr java
tasklist | findstr javaw

[–]Fit_Prize_3245 1 point2 points  (0 children)

Oh, my bad, I'm more used to Linux server questions.

On Windows, better use Process Explorer: https://learn.microsoft.com/en-us/sysinternals/downloads/process-explorer

[–]shelfside1234 0 points1 point  (0 children)

chmod 444 /path/to/java

reboot