Maybe your soft limit is set to 1024. This would mean that any user on a linux machine can only create 1024 threads. This would seem to match the limit you are getting (i.e. 8 threads for other user land programs run by you - bash etc)