G
Greg Merideth
I've written a basic windows service to provide some helper xml functions for
my web methods and even thou the service is only about 1k lines long with 1
timer, its mem usage is 10m and its vm mem usage is 14! The same code written
as a program that requires you to click on the menu options to fire off the
events takes up 4/9mb.
I've seen examples where calling SetProcessWorkingSetSize(hWnd, -1, -1); does
the same thing as minimizing a program to reduce the memory use but I can't
minimize a service and calling the setprocess function lowers the memory usage
by 0 bytes.
Are there any other ways to lower the memory usage? Even after some 40+ hours
of running the service was still consuming 10mb of ram. I just dont see how 1
timer and some xml calls with file operations takes up 10mb.
my web methods and even thou the service is only about 1k lines long with 1
timer, its mem usage is 10m and its vm mem usage is 14! The same code written
as a program that requires you to click on the menu options to fire off the
events takes up 4/9mb.
I've seen examples where calling SetProcessWorkingSetSize(hWnd, -1, -1); does
the same thing as minimizing a program to reduce the memory use but I can't
minimize a service and calling the setprocess function lowers the memory usage
by 0 bytes.
Are there any other ways to lower the memory usage? Even after some 40+ hours
of running the service was still consuming 10mb of ram. I just dont see how 1
timer and some xml calls with file operations takes up 10mb.