I have found that gc logs without gc activites means that another activity that blocks the system.
How can find which thread can cause the stop all the world on the system
I have 8 CPU server. Why one thread is in a stuck (or in a loop), other threads cannot work simulteneously. They wait for the stuck Thread.
Regards
Trustin
49024K...
I am wrapping up a class which reading a custom binary data file and makes the data available to a .net/c# class
However a couple of lines down the code, i start getting the memory access violation error which i believe is due to the GC moving memory around, the class is managed
Here's the calling code in C# - reader is mixed code ( m...
I have a bit of a memory leak issue in my Flex application, and the short version of my question is: is there any way (in AcitonScript 3) to find all live references to a given object?
What I have is a number of views with presentation models behind each of them (using Swiz). The views of interest are children of a TabNavigator, so when...
Hey,
Can u suggest some articles or books about JVM internals: how it allocates memory, handles object inheritance, garbage collection, how it executes byte code and so on.
...
Hello
I've the following code
DataView dvTest= dsTest.Tables[1].Copy().DefaultView;
Will the copy of the (huge) dataset dsTest be persisted in the memory or will it be Garbage Collected by default?
Does it copy the whole dataset to the memory?
When the GC happens?
Regards
NLV
...
Hello
I'm confused to find whether an object is either copied or the reference of the object is held while equating it to some other objects.
Examples
int i =5;
int j = i;
Reference or copy of data?
DataSet ds = dsOtherDataSet.Copy();
Reference or copy of data?
DataView dvTemp = dsTestDataSet.Copy().DefaultView;
What happens h...
My question is related to memory footprint in java for class without data member. Suppose in java I have a class which doesn't have data member and it only contains methods. So if I am creating instance of particular class then does it occupies memory in primary memory except object reference memory ?
...
Is it possible for a piece of lua user data to hold reference to a lua object? (Like a table, or another piece of user data?). Basically, what I want to know is:
Can I create a piece of userdata in such a way taht when the gc runs, the user data can say: "Hey! I'm holding references to these other objects, mark them as well."
Thanks!
...
I have code that looks like this:
/// <summary>
/// Dispose of the instance
/// </summary>
public void Dispose()
{
if (_instance != null)
{
_instance = null;
// Call GC.SupressFinalize to take this object off the finalization
// queue and prevent finalization code for this object from
// executi...
Hi,
I have an list of items that is stored in the $_SERVER["my_key"]. Are these items garbage collected automatically?
...
Hi.
We have a Web Java based application running on JBoss with allowed maximum heap size of about 1.2 GB (total machine physical memory is 2 GB). At some point the application stops responding (to clients) for several minutes. After some analysis we found out that the culprit is the Full GC. Here's an excerpt from the verbose GC log:
...
I have a C# app which runs with priority RealTime. It was all fine until I made few hectic changes in past 2 days. Now it runs out of memory in few hours.
I am trying to find whether it is a memory leak I created of this is because I consume lot more objects than before and GC simply cant collect them because it runs with same priority....
In my code, I perform a large number of tasks, each requiring a large array of memory to temporarily store data. I have about 500 tasks. At the beginning of each task, I allocate memory for
an array :
double[] tempDoubleArray = new double[M];
M is a large number depending on the precise task, typically around 2000000. Now, I do som...
I've got a problem problem with threading and disposing resources.
I've got a C# Windows Forms application which runs expensive operation in a thread. This thread instantiates an ActiveX control (AxControl). This control must be disposed as it uses a high amount of memory. So I implemented a Dispose() method and even a destructor.
Afte...
Hi everyone,
I'm currently writing a paper for my company, about how to avoid calling the garbage collector directly from the code (when playing with COM objects for instance).
I know this is a bad practice, and should be only considered in very rare cases, but I can't seem to find a way to tell why it should be avoided. And I don't w...
I know that the logic for GC to trigger is not simple but it has certain thresholds to monitor.
Anyone knows what are these thresholds could be for .NET 4 workstation and server GC ?
Thank you
...
I have written various C# console based applications, some of them long running some not, which can over time have a large memory foot print. When looking at the windows perofrmance monitor via the task manager, the same question keeps cropping up in my mind; how do I get a break down of the number objects by type that are contributing t...
I am running the following code every two minutes via a Timer:
object = new CustomObject(this);
Potentially, this is a lot of objects being created and a lot of objects being overwritten. Do the overwritten objects get garbage collected, even with a reference to itself being used in the newly created object?
I am using JDK 1.6.0_13.
...
I need to to know whether the Garbage Collector in Java works on its own or we do need to start it.
...
Is it possible for a programmer to programmatically start/stop the garbage collection in C# programming language? For example, for performance optimization and so on.
...