What is best practice for garbage collection in non trivial or critical systems in java? | Sololearn: Learn to code for FREE!
+ 3

What is best practice for garbage collection in non trivial or critical systems in java?

This Ciriculum does not discuss garbage collection or deconstructors in java. I realize that this is performed implicitly however I have seen bad software in business world that requires 4x recommended memory. What is considered best practices for non trivial garbage collection?

27th Jul 2016, 10:19 AM
Brian R.
Brian R. - avatar
2 Réponses
+ 1
I don't know the answer but I'd like to second this question. Also curious because I read on stackexchange that directly trying to free memory by deleting objects is considered very bad practice.
27th Jul 2016, 5:52 PM
Alberto Brandolini
Alberto Brandolini - avatar
0
Just like you said the developers have made their intent clear and have barred direct access to memory manipulating. Even if that's the case I don't need a Ph.D to clean up old objects and memory manipulating is really only dangerous in recursion, at least in critical systems but I digress. Is there another way to control life cycles with Java? Perhaps using threads?
29th Jul 2016, 10:03 PM
Brian R.
Brian R. - avatar