Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: How to automate the garbage collection execution in liferay 6.2 CE por
I want to write a script for automating garbage collection:
Control Panel -> Server administration -> Garbage collection(execute)
Can anyone please suggest.
Hi ,
You can call gc in Java by
Runtime.getRuntime().gc();
I'd say: You're done already: Garbage collection is already automatic in Java. No need for any custom implementation.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™