Haven't updated the blog for a long time, say the system environment:
Uname-alinux REDHAT6 2.6.32-279.el6.x86_64 #1 SMP Wed June 18:24:36 EDT x86_64 x86_64 x86_64 gnu/linux
Tomcat Java Process number 1243
[[Email protected] proc]# ps -el|head -1 pid lwp tty time cmd[[email protected] proc]# ps -eL|grep java 1243 1243 pts/0 00:00:00 java 1243 1244 pts/0 00:00:01 java 1243 1245 pts/0 00:00:32 java 1243 1246 pts/0 00:00:00 java 1243 1247 pts/0 00:00:00 java 1243 1248 pts/0 00:00:00 java 1243 1249 pts/0 00:00:03 java 1243 1250 pts/0 00:00:04 java 1243 1251 pts/0 00:00:00 java 1243 1252 pts/0 00:00:08 java 1243 1253 pts/0 00:00:00 java 1243 1259 pts/0 00:00:00 java
Cd/proc
[[email protected] proc]# ls -d [0-9]* 1 1058 11 1158 12 1212 1395 16 2 23 25 27 293 31 35 381 40 44 52 692 729 733 910 1068 1111 1166 1207 1243 14 17 20 24 250 28 294 32 36 383 41 49 53 693 730 7721014 1069 1128 1174 1209 1265 1462 18 21 242 251 29 3 33 37 39 42 5 6 7 731 81021 1097 1136 1189 1210 13 15 19 22 243 26 292 30 34 38 4 43 50 687 728 732 83 we will find that there is no 1244,1245 such as PID, don't worry,[[email protected] proc]# ls 1244 attr clear_refs cwd fdinfo maps mountstats oom_score root smaps statusautogroup cmdline environ io mem net oom_score_adj sched stack syscallauxv coredump_filter exe limits mountinfo numa_maps pagemap schedstat stat taskcgroup cpuset fd loginuid mounts oom_adj personality sessionid statm wchan[[email protected] proc]# ll 1244/exelrwxrwxrwx 1 root root 0 11 Month 6 11:27 1244/exe - > /usr/local/jdk1.6.0_45/bin/java
See, although not see 1244, but the content is actually 1243 content, essentially 1244 is the LWP process number.
At the same time, we can also understand that the maximum number of processes under Linux limit also play a role in threading. If you want to increase the maximum number of threads, increase the maximum number of processes.
[[email protected] proc]# cat/etc/security/limits.d/90-nproc.conf # Default limit for number of user ' s processes to Preve nt# accidental fork bombs.# See Rhbz #432903 for reasoning.* soft nproc 1024
This article is from "The gentleman is learned and the Japanese participate in the province to oneself." blog, be sure to keep this source http://linuxgp.blog.51cto.com/1708668/1572996
Linux Lightweight Process LWP