1. Install JBoss 4.0.4.GA
run -c all, shutdown -S work fine
2. Install EJB3.0 RC6 or 7 for the `all' config
shutdown -S throws `OutOfMemoryError: can't create native threads', `resource temporary unavailable', etc. - depends on current user and weather conditions.
Then the server can only be stopped by `kill -9'
Linux 2.6, Java 1.5.0_06
Java params: -server -Xms128m -Xmx512m (the same with 768m and 1024m) -Xss128k
What need I update in jbossall-client.jar or shutdown.sh not to have these errors?