Questions tagged as 'garbage-collector'

1
answer

Static properties and memory release

I have some doubts regarding the release of resources for cases where my modifiers are static. My project is unit testing and I'm using Selenium for the first time. public class LoginTest : Base { [ClassInitialize] public st...
asked by 19.05.2017 / 16:46
1
answer

Allocation and memory cleaning in C - how much should I care?

I am learning C from the book "Use the Head! C" (condemn me). Given a lesson, I need to create a struct called " island " with the following code: typedef struct island { const char *name; const char *opens; const char *clos...
asked by 03.11.2015 / 00:18
2
answers

How to create unmanaged variables?

When you create a variable, a value is allocated in memory for it, which can be accessed by any system from outside the address of that memory. Creating a file to store the contents of a variable would also create a file location, which could...
asked by 08.07.2018 / 21:10
1
answer

Does the Garbage Collector remove all or only those that have no reference?

In a Java application there are objects that are not being used, there are objects that have and do not have reference. How does the Garbage Collector handle this? Does it remove all or only those that have no reference?     
asked by 20.11.2018 / 11:15
1
answer

Finalize method in Java

How does the "finalize" method work in Java? Is it called implicitly? Below is a code with this method that I can not understand. The class EmployeeTest calls this method, but I do not know how. package employee; public class Employee{...
asked by 16.05.2016 / 00:09
1
answer

How to create a WeakHashSet / WeakSet in Java

The java.lang.ref package provides classes that model reference types in Java, such as Reference, SoftReferece, WeakReference, and PhantomReference.    Still do not know these references in Java? See this question:    Canonicalized Mapping an...
asked by 27.06.2015 / 23:05
1
answer

impact of a high heap memory on the JVM

What is the impact of having a high memory heap in the JVM? Does the Garbage Collector take longer to clear memory when it is too high (about 12gb)? If so, is there any way to avoid this delay programmatically without using infrastructure soluti...
asked by 11.06.2014 / 15:08
1
answer

How to get the amount of garbage already generated at one point in Java code?

So folks, I wonder if they have some method or even way of picking up the amount of Garbage generated the current moment of the code. If you do not know but if you know any DOC that I can study to find a shape, thank you.     
asked by 20.09.2017 / 23:41
1
answer

How to set all PHP settings to the default value?

I have a Linux CentOS VPS and the garbage collector configuration is wrong. I need to fix it in an easy way since I have very little knowledge of it. I would like to know if there is a way to set all PHP settings to default. I use the Plesk cont...
asked by 12.01.2017 / 19:29
1
answer

How do I know if there is a CRON doing work on the PHP 5.3 garbage collector (CentOS)?

I have this error:    ps_files_cleanup_dir: opendir (/ var / lib / php5) failed: Permission denied. The normal fix is to set session.gc_probability = 0 But in CentOS, the correct thing is that session.gc_probability is 1...
asked by 23.11.2016 / 03:34