Products
Applications
Support
Company
How To Buy
Skip to main content (Press Enter).
Sign in
Skip auxiliary navigation (Press Enter).
Register
Skip main navigation (Press Enter).
Toggle navigation
Search Options
Home
Communities
All Communities
Application Networking and Security
Enterprise Software
Mainframe Software
Software Defined Edge
Symantec Enterprise
Tanzu
VMware {code}
VMware Cloud Foundation
Blogs
All Blogs
Enterprise Software
Mainframe Software
Symantec Enterprise
VMware
Events
All Events
Enterprise Software
Mainframe Software
Symantec Enterprise
VMware
Water Cooler
Betas
Flings
Education
Groups
Enterprise Software
Mainframe Software
Symantec Enterprise
VMware
Members
vCenter
Cloud & SDDC
View Only
Community Home
Threads
Library
Events
Members
Back to discussions
Expand all
|
Collapse all
sort by most recent
sort by thread
SigarException when using ProcExe on some PIDs
jrallen9
Mar 04, 2011 01:32 AM
I've been coding up a Java class which uses the Sigar.getProcList() and Sigar.getProcExe() to get the ...
Douglas MacEachern
Apr 08, 2011 10:46 PM
Hey Justin, I see the issue with the System process (pid 4), but haven't seen any problems with others. ...
1.
SigarException when using ProcExe on some PIDs
0
Recommend
jrallen9
Posted Mar 04, 2011 01:32 AM
Reply
Reply Privately
Options Dropdown
I've been coding up a Java class which uses the Sigar.getProcList() and Sigar.getProcExe() to get the exe name and arguments of running processes on a system.
I've noticed that in the process of iterating through the pids array returned by getProcList I will get SigarExceptions.
One such exception was on pid 3292 which is assigned to a instance of the chrome.exe browser. Another time it was pid 4 which is a System process and another time it was the smss process.
Is there any explanation to these exceptions and what might cause some processes to return an exception while others do not? Is this a concurrency issue?
Thanks for the help.
2.
RE: SigarException when using ProcExe on some PIDs
0
Recommend
Broadcom Employee
Douglas MacEachern
Posted Apr 08, 2011 10:46 PM
Reply
Reply Privately
Options Dropdown
Hey Justin,
I see the issue with the System process (pid 4), but haven't seen any problems with others. Which version of windows are you running?
Are you able to see the name=... for every process other than pid 4 with this command:
java -jar sigar.jar pfile State.Name.re=.*
×
New Best Answer
This thread already has a best answer. Would you like to mark this message as the new best answer?
Copyright 2024. All rights reserved.
Powered by Higher Logic