Java Face questions and Answers (iv)

Source: Internet
Author: User

1. What circumstances will the JVM GC,GC policy?

When an application allocates a new object, the GC's generation's budget size has reached the threshold, such as the No. 0 generation of the GC, and the code actively explicitly calls System.GC.Collect (); Other special cases, for example, the system reports low memory, CLR unload AppDomain, CLR shutdown, Even in some extreme cases, changes in system parameter settings can lead to GC recycling

Http://www.cnblogs.com/jeffwongishandsome/p/talk-about-GC-and-how-to-use-GC-better.html

Http://www.cnblogs.com/tang9139/p/4519415.html

2, what is OutOfMemoryError and StackOverflow

If the virtual machine cannot request enough memory space in the expansion stack, the OutOfMemoryError exception is thrown, usually due to the large amount of data such as the requested array or ArrayList, HashMap.

If the thread requests a stack depth greater than the maximum allowed by the virtual machine, the Stackoverflowerror exception is thrown, typically due to a large number of recursive operations that result in insufficient stack memory.

Generally in the case of single-threaded program can not produce OutOfMemoryError exception, using multithreading will also appear outofmemeoryerror, because the stack is thread-private, line multithreading also overflow method area

3, JVM stack space allocation over the General Assembly caused by what problems

http://blog.csdn.net/qq_30739519/article/details/51042584

4. How to detect dead loops and deadlocks in the JVM

Deadlock: http://www.cnblogs.com/ilahsa/archive/2013/06/03/3115410.html

Dead Loop: http://blog.csdn.net/sinat_36246371/article/details/53036544

5. Explain Bio,nio,nio2,aio

http://blog.csdn.net/zhangzeyuaaa/article/details/50520458

Http://www.cnblogs.com/handsome1013/p/4882862.html

6, NiO package under the What is the difference between poll and select?

Http://www.cnblogs.com/Anker/p/3265058.html

7,http/1.1 Foundation

Http://www.cnblogs.com/cxd4321/p/3504632.html

http://blog.csdn.net/macrossdzh/article/details/5256565

8. Three handshake and four wave in TCP protocol

http://blog.csdn.net/whuslei/article/details/6667471/

Java Face questions and Answers (iv)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.