Hi,
I have an C# application and after about 12 hours it hangs with a .NET
Error System.OutOfMem oryException. This error is received after
GC.GetTotalMemo ry: 100038436 and in task manager the used memory is
about 130,000k.
I used GC.Collect but did not help. Please help.
Thanks in advance
Dan
*** Sent via Developersdex http://www.developersdex.com *** 5 5516
"Dan Pavel" <my************ **@yahoo.com> wrote in message
news:uM******** ******@TK2MSFTN GP12.phx.gbl... I have an C# application and after about 12 hours it hangs with a .NET Error System.OutOfMem oryException. This error is received after GC.GetTotalMemo ry: 100038436 and in task manager the used memory is about 130,000k. I used GC.Collect but did not help. Please help.
Almost certainly you are not disposing resources correctly - you ABSOLUTELY
CANNOT rely on the GC to do this for you!!!!
That means you are consuming more memory than there is available. The reason
can be a bug in your code, or simply a design error.
A bug can be not disposing unmanaged resources, but there might be other
reasons.
A design error can be allocating too large data structures (arrays,
ArrayLists ...).
Anyway, what you should do is measure the memory consumption at run-time
using permon.exe, pay special attention to GC memory and non-GC memory, that
are the CLR memory counters and the process private byte counters.
Willy.
"Dan Pavel" <my************ **@yahoo.com> wrote in message
news:uM******** ******@TK2MSFTN GP12.phx.gbl... Hi,
I have an C# application and after about 12 hours it hangs with a .NET Error System.OutOfMem oryException. This error is received after GC.GetTotalMemo ry: 100038436 and in task manager the used memory is about 130,000k. I used GC.Collect but did not help. Please help.
Thanks in advance Dan
*** Sent via Developersdex http://www.developersdex.com ***
Hi,
Probably you have one of two situations:
1- You are keeping too many objects in memory without dereferencing them
hence they are never collected
2- you use any external resource that you are nt disposing.
what your app does?
cheers,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Dan Pavel" <my************ **@yahoo.com> wrote in message
news:uM******** ******@TK2MSFTN GP12.phx.gbl... Hi,
I have an C# application and after about 12 hours it hangs with a .NET Error System.OutOfMem oryException. This error is received after GC.GetTotalMemo ry: 100038436 and in task manager the used memory is about 130,000k. I used GC.Collect but did not help. Please help.
Thanks in advance Dan
*** Sent via Developersdex http://www.developersdex.com ***
My app is monitoring some workstations and start/stop some workflows on
that machines. I am using SNMP for this.
An interesting thing: my app runs hidden. I have a notification Icon in
task bar. when I click on the icon the form opens. after I close the
form (app keeps running) the used memory reported for my app's process
in Task manages goes to about 1,000 k. Why this way the memory goes down
and else goes up ?
Thanks,
Dan
*** Sent via Developersdex http://www.developersdex.com *** This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Birgit Rahm |
last post by:
Hello newsgroup,
I am a beginner, so I am asking maybe immoderate questions.
I want to delete a variable, after filling it with complex objects. How
should I do it?
e.g.
AAA =
AAA =
Can I
1) AAA =
|
by: Erik Miller |
last post by:
Hi Guys,
I find there is memory leak in our SQL 2000+SP3 databass. We have a
client-server system, and the there are Jrun4.0 running JSP and someother
Java application talks to the database.
However, for only less than 40 users, the SQL 2000 memory usage will
increase consistantly until it use all the memory it can get ,about 1.7G
memory. Then eventually the SQL server process will hang in couple days.
|
by: Jon Trickey |
last post by:
We migrated to 8.1 from 7.2 this weekend. Everything ran ok over the
weekend, but we have a light user load then (about 200 users.) Today
when we had close to 600 users connecting and running applications,
the db2syscs.exe process started gobbling up memory until it hit about
1.7 gigs (which seems to be the limit from what I've read) then it
started crapping out.. We have shrunk the buffer pools to much lower
that they used to be in 7,...
|
by: Chetan Raj |
last post by:
Hi All,
We have a web-application in asp.net that interacts with legacy code
written in COM. The memory usage in aspnet_wp.exe increases every sec
and never reduces. Using the .NET performance counters, we found that
unmanaged memory was 90% of the total private bytes of aspnet_wp.exe.
We suspected that the COM code has memory leaks. So we made it as a
COM+ Service running as dllhost.exe. Surprisingly, there was no memory
increase in...
|
by: Sean |
last post by:
I have a service that is pulling alot of records from a SQL Server table in a DataSet. This process takes up alot of memory, which is to be expected. But when the process is finished, I am clearing all the data I thought with:
MyDataSet.Tables("MyTable1").Rows.Clear()
MyDataSet.Tables("MyTable2").Rows.Clear()
MyDataSet.Tables("MyTable3").Rows.Clear()
But I'm monitoring the memory the process is doing and this isn't freeing the memory. Is...
| |
by: James |
last post by:
Hi,
I need help with a couple of questions, I have create and structure like:
Structure byteArray
Public byteA() As Byte
End Structure
Public ptrArray() As byteArray
|
by: comp.lang.php |
last post by:
I have an image that's only 100K in size, and I am working with 8mb of
memory. If I do this:
print_r(ceil((int)ini_get('memory_limit') * 10 *
filesize(actual_path("$locationPath/$this->fileName")) / 1000000) .
'M'); // PRINTS OUT "2M" for 2mb
]/PHP]
The image itself requires far less than the maximum amount of memory
|
by: CMOS |
last post by:
consider the below code. it just creates a map and inserts 51000000
elements. when i check the memory usage , it shows an increase of
memory after the loop. the increase is around 2mb. i used "ps aux"
command and use the VSZ value.
why is this happening? i dont see any memory leaks as nothing is
created in heap/free store.
is this some kind of a memory fragmentation issue?
// memory ckeck 1 goes here
{
|
by: Kevin McKinley |
last post by:
# I posted a few days ago about a memory leak that I think i'm having with my first Tkinter program.
# I've had trouble pinpointing what is wrong so i thought i would submit the code and see if anyone would
# like to critique it.
# I have one more problem that i can't figure out either. There are a bunch of Entry widgets that require number values.
# My problem is if someone inputs a letter or space the program will have error that...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |