From: ye <hua...@gm...> - 2008-09-05 15:01:59
|
Hi, Agustín: Thanks for reply! Unfortunately, I am using mac jvm 1.5.0 and openjdk 1.6 instead of sun java. However, are you sure your problem is caused by java's inability to handle memory upto 1.5GB? Does it mean that you have monitored the memory use of your machine has exceeded (or close) 1.5GB. For my scenario, the simulation memory usage is only around 300MB, far before the jvm configuration (1024M). In the other hand, although I never have the expirence of using 1GB memory with java, I suppose most of the real OutOfMemoryError should be caused by the limit of machine. The limit of memory usage of 32-bit system is 4GB (2e32), and some OSs will reserve certain amount of memory for kernel process, e.g. windows 2000 normally reserve 2GB for its own. For your problem, if you are sure the crash is caused by memory overload (> 1.5GB), I think it might not be a bad news. You should be able to solve this problem by using a 64-bit system. Best Regards ye On Fri, Sep 5, 2008 at 4:35 PM, Agustín Caminero Herráez < ag...@ds...> wrote: > Hi Ye, > > I've also suffered the problems u describe, and I'm afraid there is no > solution for them. The only suggestion I can give to u is to scale down your > simulations. > > The problem comes from Java's inability to handle more than 1.5 GB of > memory, so there is nothing u can do. > > Just one thing, are u using Sun Java? Because using another different java > may cause problems... The java I us is Sun v1.4.2 > > Regards, > > Agustin > > ye escribió: > >> Hi, Dear all: >> Although I have asked a similar question in gridsim-user maillist, there >> seems no similar experience from other developers. Since it's an crucial >> problem for me, I'd to make the scenario much clear and beg for help. >> >> For brief, is there any scale limit for simulation created via GridSim? >> >> I was trying to set up a gridsim simulation with 1000 resource; each >> resource contains one machine, each machine has two PEs. Then, I wrote a >> user to retrieve resource list within its body(), and print the total size. >> However, the program halts with an OutOfMemoryError, every time before >> "Entities started" was printed. The user's body() was never visited. >> >> I am working on a mac 10.5, 2GB 667 Mhz memory, mac JVM 1.5; meanwhile, I >> already adjust the vm parameter into "-Xms512m -Xmx1024m". >> >> Later, I tried the same program on my server (ubuntu 8.04, 3.2GB). >> Fortunately, it works... but, it halts again with OOME while i decide create >> 1100 resources. >> >> I am not sure the problem is caused by lacking of memory? Is there any >> limit for gridsim simulation scale, or just for GridSim Resource? Or it's >> bug derived from simjava? >> >> Finally, is it possible to solve it? >> >> Thank you guys a lot!! >> >> regards >> ye >> >> -- >> Ye Huang, Department of Informatics >> University of Fribourg / Pérolles 2 - Bld de Pérolles 90 >> 1700 Fribourg, Switzerland >> >> e-mail: ye....@he..., ye....@un... >> http://diuf.unifr.ch/people/huangy/ >> Office: +41 26 429 65 95 >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------- >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win great >> prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Gridsim-users mailing list >> Gri...@li... >> https://lists.sourceforge.net/lists/listinfo/gridsim-users >> >> > > -- > =============================================== > Agustin Caminero > Research Assistant. > Computing Systems Department. > Albacete Research Institute of Informatics (I3A). > The University of Castilla La Mancha. > Campus Universitario s/n, 02071, Albacete. Spain. > Phone: +34 967 599 200 Ext. 2693. Fax: +34 967 599 343 > http://www.i3a.uclm.es/ > =============================================== > > -- Ye Huang, Department of Informatics University of Fribourg / Pérolles 2 - Bld de Pérolles 90 1700 Fribourg, Switzerland e-mail: ye....@he..., ye....@un... http://diuf.unifr.ch/people/huangy/ Office: +41 26 429 65 95 |