Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Could not Dispoing sharepoint object cause Memory Leak

  Asked By: Kamal    Date: Sep 07    Category: Sharepoint    Views: 1078

The past two days I have been working on creating EventHandlers , faturereciever
class for the venthandlers and other classes that use sharepoint object model. I
am seeing a weird situation on my virtual machine. The space on my on my virtual
machine is 40GB and the files I have should not fill up all the hard drive.
However even if I delete files and manage to get few Gigs , the hard disk spaces
starts to drop fast and end up that have no hard drive space.

Could this be related to sharepoint as I read that not disposing objects
properly in Sharepoint objects could cause memory leak. Is memory leak could be
to the hard drive space ?
Has anybody had this problem before? I am not able to even save a single file
now so appreciate your quiick response.



8 Answers Found

Answer #1    Answered By: Kristian Chaney     Answered On: Sep 07

Check the logs folder in the 12 hive. If you have logging turned on at
relatively high levels I've seen logs grow to consume GBs of space  very quickly.
memory  leak wouldn't lead to declining disk  space.

Answer #2    Answered By: Alicia Scott     Answered On: Sep 07

So is it okay to delete  all the files  under the logs. I have alot of files there?

Answer #3    Answered By: Mike Lamb     Answered On: Sep 07

Unless you plan to use them to debug something I regularly delete  the logs in
that location that are dated older than Today if its on a DEV environment. If
its a production environment I treat the logs like the event viewer logs. Make
a Backup and then delete them.

Answer #4    Answered By: Jose Scott     Answered On: Sep 07

I deleted the log and got some space  but something ate up the space again. I
even gained 2GB deleting other files  but after few mins the space is all
gone. It starts to go down gradually and after few minustes the c : drive  shows
0 byte available.

Answer #5    Answered By: Taylor Clark     Answered On: Sep 07

Are you creating/updating any files  (or perhaps a database) with your code?
Something is saving lots of data. Is it possible that the SQL Server
transaction log is filling up that fast?

Answer #6    Answered By: Anthony Rutledge     Answered On: Sep 07

Yes , that happened to be the case. For some reason my sql server is dumping
file to the log file.

Answer #7    Answered By: Heena Nagori     Answered On: Sep 07

Start by bringing up the properties sheet on each folder from the root
of the hard  drive

Which ever is largest, repeat until the culprit is found. It's
obviously something

What about the SQL logs? is sql server on the same box? if you have c2
audit tracing on, they can fill  up the drive  very quickly with moss

Answer #8    Answered By: Aishwarya Karmarkar     Answered On: Sep 07

Yes the problem  came up t be Sql Server dumping some files. I am not sure what
c2 audit tracing is ? Where do I turn it off ?

Didn't find what you were looking for? Find more on Could not Dispoing sharepoint object cause Memory Leak Or get search suggestion and latest updates.