문제

how can I get thread count on HP-UX I am using ps -eLf| grep java | wc -l and ps -L -p $PID |wc -l on liunx and solaris, but it seems can't use on HP-UX

I have tried ps uH p $PID on HP-UX, but it seems can't too. Does any one have solution for this? please help ^_^

도움이 되었습니까?

해결책

'ps -ef |grep -i java |wc -l ' >> is the best workaround (this will count your grep command as well, so if it results in value 'x' then total tthread in execution is 'x-1' actually. )

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top