opensourceBIM / bimvie.ws

Javascript client for Building Information Modelling, using open standards like IFC, BCF and BIMSie. Using Bootstrap, BIM Surfer, etc..
GNU Affero General Public License v3.0
173 stars 87 forks source link

How to release the previous model data memory in Chrome when I see a new model #106

Open btc100w opened 6 years ago

btc100w commented 6 years ago

Hi,rubendel. Last week I issues the question in the Repositories of BIMServer(https://github.com/opensourceBIM/BIMserver/issues/482),when I see more and more model,the memory of Chrome increase significantly and finally hard to use.I want to realize that when I see a new model,the previous model data memory can be released. I use the performance tool of Chorme and find that when I click the see button,three function was called in bimviews.js,which packed in home/plugins/org.opensourcebim.bimviews-0.0.106.jar. How can I do something of that to achieve my goal?

qq 20180613084521

rubendel commented 6 years ago

In the crossposted issue, you talked about subsequently checking-in several models, now you talk about "seeing" a model, those are two different things.

I just tried to view the same model a dozen times (without refreshing the browser), memory does not increase significantly. There are a lot of ways of viewing a model in BIMvie.ws though, maybe a specific path does not release the memory correctly, but I need to know which steps you take, maybe record it in a video?

btc100w commented 6 years ago

sorry,I means " viewing a model",not check in.

I have uploaded my action video.You can see the chrome memory increase (The second column of windows task management) when I viewing more and more model and lastly refresh the Chrome,memory go back to normal

https://youtu.be/e1FDyDhQLY0

chanwengit commented 6 years ago

i have also seen this problem, you may need to try a bigger ifc model > 100MB. and can you give any useful suggestions? @rubendel thanks a lot

bimmodel commented 5 years ago

I confirm after closing of the browser memory on the server is not released, also after transition to other model memory on the server is not released. Helps only restart eclipse