I wrote a Java program to download a HTML page. But CPU usage is near to 100%, while network usage is lower than 3%. It seems like that CPU became my bottleneck. How do I cut my CPU usage?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use a profiler (I like VisualVM), identify the bottleneck and fix it!