threads

 

This post is a summary of the Java performance tuning session given at on April 27th 2010.

shlomo 29/04/2010 - 07:49

Feel free to add your own.

 

0- Unrealted warmup question:

Will the folowing code compile?

import java.util.ArrayList; 
/**
 * Created by IntelliJ IDEA.
 * User: sk
 * Date: 7/20/11
 * To change this template use File | Settings | File Templates.
 */
public class Test {

    public <ArrayList> ArrayList strangeMethod(){        
        return null;
    }

 

1-How does one generate a Thread dump?

2-What is the default (stack) memory allocated for each thread on a JVM on a 64 bit Windows operation system?

3-What is the most probable runtime error when running a JVM with 500 threads and setting JAVA_OPTIONS ="-Xss10m" ?
(same as 3 only with "-Xss64k")

4-Given a thread dump how does one detect a deadlock?

5- What does the following command do:

shlomo 20/07/2011 - 21:25

Hi,

A client had this issue. Instead of presenting the whole case, here are two links that explain the scenario and provide possible solutions to this issue if you ever encounter it:

 

1- http://candrews.integralblue.com/2009/01/preventing-outofmemoryerror-nat...

 

2- http://www.talkingtree.com/blog/index.cfm/2005/3/11/NewNativeThread

 

 

 

shlomo 31/08/2010 - 08:18
Syndicate content