-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Leaking memory on every compile #10
Comments
Try removing the garden task from your pipeline. If you can't reproduce the Thanks!
|
Hi @martinklepsch. I've removed it from the pipeline. The memory footprint still increases when it re-compiles the JS code, but at a much smaller rate (200-300 KB). This makes me think that either To work around the issue I'm now generating the CSS dynamically and inserting it like this: (require '[goog.style] '[garden.core :refer [css]]))
(goog.style/installStyles (css [:body {:background "#ff0000"}])) I know this isn't ideal but it is fine for quick-development right now. What other info or troubleshooting can I do to assist in narrowing down the problem for you? |
I experimented with some different ways to use the pods but that didn't seem to have an impact on the used memory. I guess it would be useful to test with How are you measuring these things btw, any tools that are particularly helpful? |
boot-clj/boot#268 — just discovered this issue in Boot which makes me assume it's a general issue. |
I just used
Interesting. I'll try |
@sonelliot Spent some time today looking into this problem. Few questions: When the exception occurs:
|
@martinklepsch I am currently using a different machine. I will try to jump back on the other computer tomorrow and get some more detailed stats for you. In regards to your questions:
By this, do you mean the value of the My
From memory, it was approximately 1 GB before I hit the exception. I will get a more detailed measurement for you tomorrow.
It is a desktop PC with 12GB of DDR3 RAM. |
I believe this has been fixed with Boot v2.4.0. I recommend trying with a recent release of Boot. |
Hi there! I am seeing a memory leak after every
garden
compile of approximately 10-15mb each time. This eventually causes anOutOfMemoryException
like this one:I have increased my PermGen size as suggested here but this only delays the problem for a while. Since I'm making rapid changes to my styles and seeing the results reload in the browser, I very quickly run out of memory and have to re-run my Boot command, which is a pain!
I'm not sure if the leak is in the Boot task or in Garden itself. Let me know what I can do to help!
The text was updated successfully, but these errors were encountered: