Link to home
Start Free TrialLog in
Avatar of OrenRozen
OrenRozenFlag for Israel

asked on

SetProcessWorkingSetSizeEx and the 'system' process CPU usage

My application, when running in terminal server, takes about 80Mb of ram and more.
The server is 2003 standard 32bit with 2 DualCore CPU's and 4Gb.
I found a way to reduce the amount of working set used by my application with the SetProcessWorkingSetSizeEx method but the more users connecting to the terminal server I noticed that the 'system' process is using 25% of the CPU (100% of one core) after running this method to the level where it 'hurts ' the server performance.

BTW, after running the method, it reduces the size of the WS form 80Mb to 5Mb. Also, I'm running this method every 1 minute.

1. why is that process using the 'system' process?
2. is it possible to reduce the usage of this process?
3. if not, any other way to trim the memory of the application?

Thanks,
Avatar of graye
graye
Flag of United States of America image

I'm not sure we can answer your question without knowing a bit more about your application... what does it do?
ASKER CERTIFIED SOLUTION
Avatar of mastoo
mastoo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of OrenRozen

ASKER

partial solution given