https://bugzilla.novell.com/show_bug.cgi?id=329684
Summary: Heavy memory usage in mono 1.2.5.1
Product: Mono: Runtime
Version: 1.2
Platform: i686
OS/Version: Ubuntu
Status: NEW
Severity: Normal
Priority: P5 - None
Component: GC
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
QAContact: [EMAIL PROTECTED]
Found By: Customer
Running the following testcase in mono 1.2.5.1 increases mem usage to 40meg
(and steeply rising) easily within seconds.
Running the testcase in mono < 1.2.5 hardly uses more than 10 megs and mem
usage also goes down a little sometimes.
Mem usage was determined using gnome systemmoninotor.
Replacing DirectoryInfo/FileInfo by
Directory.GetDirectories()/Directory.GetFiles() doesn't change much.
What's also strange is that heap-shot only reports less than 5 megs of heap
usage..
Maybe something related to recursion?
TestCase:
using System;
using System.IO;
namespace MemTest
{
class MainClass
{
private static int counter;
public static void Main(string[] args)
{
RecursiveDump(new DirectoryInfo("/"));
Console.WriteLine("finished");
Console.ReadKey();
}
private static void RecursiveDump(DirectoryInfo d) {
string s;
FileInfo[] f = d.GetFiles();
for (int i = 0; i < f.Length; i++) {
try {
// s = f[i].FullName;
} catch {}
}
DirectoryInfo[] di = d.GetDirectories();
for (int i = 0; i < di.Length; i++) {
try {
counter++;
if (counter == 500) {
// Console.WriteLine(di[i].FullName);
counter = 0;
}
RecursiveDump(di[i]);
} catch {}
}
}
}
}
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs