Appropriate use of garbage collectors and automatic memory management of public language runtime

xiaoxiao2021-03-06  115

Be careful not to assign excessive memory for each request, because this garbage collector will have to work more frequently. Also, don't let unnecessary pointer points to objects because they will keep objects active and should try to avoid the object of the Finalize method because they will lead to more work later. Especially in the finalize call, you will never release resources because resources may always consume memory before being recovered by garbage collector. Last this problem often causes devastating blow to the performance of the web server environment, because it is easy to exhaust a particular resource when waiting for Finalize runtime.

For more information on garbage collectors and automatic memory management, see Automatic Memory Management.

转载请注明原文地址:https://www.9cbs.com/read-101642.html

New Post(0)