I am using Indesign server to create documents which contains text and images. My job is to create & export documents to pdf. Document are sometimes contains 100 plus pages. I'm closing the document each time.
This all works perfectly, but while it's running, I see the memory usage of InDesignServer.exe spike by several MB, and then it settles back down to a still-higher-than-initial value. Eventually, the InDesignServer.exe is taking up several hundred MB and my server starts giving out-of-memory errors.
I'm not sure what I'm doing wrong. Like the original poster asked, it appears as though I should be flushing something that I am not.
I can't find anything in the language reference on how to programmatically flush this after each document. I'm not even sure if this is the culprit.