Joined: Jan 14, 2012
Post Count: 18
Status:
Offline
How to reduce memory utilization of sweethome3d
Hi Emanuelle,
First of all a million thanks for making such a beautiful software.. Thanks a lot...
On my machine a 300MB sh3d file is using 2.3GB memory.
I wish to understand what causes so much memory utilization.
I investigated ObjLoader.createScene() method and found that each scene object takes only few KBs of memory whereas in windows task manager the memory increases in Mega Bytes.
Is there any architecture document for SweetHome3d or some flow diagram of exactly how code flows when we load a model.
please help me as i wish to understand things better.
France
Joined: Nov 7, 2005
Post Count: 9420
Status:
Offline
Re: How to reduce memory utilization of sweethome3d
rohit, you can use visualvm (included with recent JDKs as the jvisualvm command). I regularly check possible memory leaks and perfomances issues in Sweet Home 3D with this tool. If you find some places where memory can be saved without breaking the few caches I programmed, don't hesitate to report it. Nevertheless, 300 MB for a sh3d file, even uncompressed, is already big! You should check if the models you imported don't use too large textures.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
Joined: Jan 14, 2012
Post Count: 18
Status:
Offline
Re: How to reduce memory utilization of sweethome3d
thank you very much emmanuel sir...
I investigated a lot using visualvm but couldn't find any serious memory issue...
My observations:
I noted that for my model of 250MB :)) , visualVM showed JVM memory utilization of 550 MB (almost double) which is ok for me,..but the Java process in windows task manager showed memory utilization of 1200 to 2000 MB....(i think we cannot do much with how java process is handled by operating system)..