473,395 Members | 1,856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Working set increases

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.getCerFileN ame());
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;
}
Nov 16 '05 #1
2 2553
The string array may well be the problem. Try setting it to null when it is no longer needed. The memory usage would still rise but *eventually* the GC will do its round and the memory usage *should* :) reduce (not to familiar with the .net GC)

Rasika
Nov 16 '05 #2
The string array may well be the problem. Try setting it to null when it is no longer needed. The memory usage would still rise but *eventually* the GC will do its round and the memory usage *should* :) reduce (not to familiar with the .net GC)

Rasika
Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Krister Liljedahl | last post by:
Hi, I'm getting an "10055, An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full" error message when opening 64 or more...
0
by: Rob Baxter | last post by:
I have a linux server which is hosting several very large (~20GB) databases. In order to save some disk space I dropped an index on one of the larger (InnoDB) tables because it is no longer needed....
4
by: bissatch | last post by:
I am trying to use DIV tags and a class to hide the DIV and the HTML within. I will use JavScript to change it from hidden to visible but that will come later. Below is the code I am using ...
1
by: Fritz | last post by:
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....
104
by: Beowulf | last post by:
I have the view below and if I use vwRouteReference as the rowsource for a combo box in an MS Access form or run "SELECT * FROM vwRouteReference" in SQL Query Analyzer, the rows don't come through...
7
by: Daniel Kabs | last post by:
Hi there, for a long time I've been using tables to layout elements on a web page. Example: Say we have a 2x2 table and I'd like to put text (left aligned) and buttons (right aligned) in the...
3
by: Shirsoft | last post by:
I have used a #define to reduce code size but it greatly increases the compile time (from a few secs to 5 mins) The #define is quite simple #define UPDATE_VOL_SLICE(VOL,I,J,K, VAL)\ VOL = ...
2
by: NEWS | last post by:
Hi, I am getting this error when users increases in my application .pls help how to tune this i am using .Net 2003 error is Server Error in '/webpdms' Application....
9
by: raashid bhatt | last post by:
does having more variables increases the size of program.
3
by: Adam Clauss | last post by:
We have an application which is fairly network intensive. During some stress testing, we had it setup to open approximately 300-400 TCP connections (outbound connections, we are a TCP client). ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.