mcneel / compute.rhino3d

REST geometry server based on RhinoCommon and headless Rhino
Other
284 stars 182 forks source link

Disabling Cache #556

Open buckettt opened 1 year ago

buckettt commented 1 year ago

When doing many (100s-1000s) of calls to rhino compute the response time gradually gets slower and slower with each iteration. I presume that this is attributable to caching and checking cached responses. It would be good to be able to disable the cache presuming when knowing that requests will be unique or numerous.

Found this as related when searching the forums: https://discourse.mcneel.com/t/clearing-rhino-compute-memory-cache-without-restarting-the-local-server/148102

Edit: Just looked at rhino.compute.exe is currently using 38GB of memory and counting compared to 22MB when just started.

sbaer commented 1 year ago

Caching is typically not used unless requested. Or at leastit shouldn’t be https://github.com/mcneel/compute.rhino3d/blob/master/src/compute.geometry/IO/Schema.cs#L29

buckettt commented 1 year ago

Ah I see - what could be accounting for the high memory usage then?

sbaer commented 1 year ago

It would probably be best to run a memory analysis tool to try and track down the cause