Working set increases

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Fritz (fritz_at_altosistemi.nospam.it)
Date: 04/06/04


Date: Tue, 6 Apr 2004 14:10:53 +0200

Environment: Windows Server 2003 EE, .Net Framework 1.1, C#

I have a problem of memory usage growing continuously.
Basically, my application is a windows service that polls a webservice
method. This method returns a string array which is normally empty, and no
action is performed. Every 30 secs (polling time) the memory usage raises of
few KB.

Do you have any idea about what can cause this working set increment?

I report here the code of the timer event handler for who feels like having
a look.

// Timer.Elapsed event handler
public static void OnTimedEvent(object source, ElapsedEventArgs e)
{
timer.Enabled=false;
IniData ini=IniData.Instance(); // initialization class (singleton)
Logger log=Logger.Instance(); // log class (singleton)
try
{
WebService jgpm=new WebService(); // The web service is secured by using
https and certificates
X509Certificate x509 =
X509Certificate.CreateFromCertFile(ini.getCerFileName());
jgpm.ClientCertificates.Add(x509);
jgpm.Url=ini.getWsUrlRoot()";
string s=x509.GetName();

string[] tickets=jgpm.getOrders(s); // WEB SERVICE METHOD

foreach (string ticket in tickets) // tickets is normally empty and the
statement is not executed
{
    // ticket elaboration
}
}
catch (Exception exc)
{
log.Debug(exc.Message);
}
timer.Enabled=true;
}



Relevant Pages

  • Re: VB.Net WMI Windows Server 2003
    ... If the code works as expected in XP it should behave correctly in w2k3 also ... I use the Management Base ... > running on a Windows Server 2003 machine I get an error. ... > I am not sure if this problem is specific to running a Windows Service ...
    (microsoft.public.dotnet.languages.vb)
  • Re: VB.Net WMI Windows Server 2003
    ... If the code works as expected in XP it should behave correctly in w2k3 also ... I use the Management Base ... > running on a Windows Server 2003 machine I get an error. ... > I am not sure if this problem is specific to running a Windows Service ...
    (microsoft.public.win32.programmer.wmi)
  • Re: Debugging java memory usage in tomcat
    ... increase as well memory usage increase. ... windows service using tomcat5.exe, I do find references to java and ... with tomcat service. ...
    (comp.lang.java.programmer)
  • SQL Server 2000 Memory Usage.
    ... I am monitoring the memory usage for the Windows Service, ... I am observing that the memory usage for Windows Service and DLLHOST ... In case of SQL Server the memory usage keeps on increasing. ... keeps on increasing memory as long as there is free memory. ...
    (microsoft.public.dotnet.framework.performance)
  • Re: Debugging java memory usage in tomcat
    ... one can see tomcat5.exe process in task manager. ... increase as well memory usage increase. ... windows service using tomcat5.exe, I do find references to java and ...
    (comp.lang.java.programmer)