su: pam_keyinit(su-l:session): Unable to change UID to 500 temporarilysu: pam_keyinit(su-l:session): Unable to change UID to 500 temporarilysu: pam_unix(su-l:session): session opened for user adtech by root(uID=0)su: pam_unix(su-l:session): session closed for user adtech
我想这是由每用户限制造成的,但与其他用户比较时没有什么不同.
这是针对adtech的ulimit -n:
[adtech@hmaster87 root]$ulimit -acore file size (blocks,-c) 0data seg size (kbytes,-d) unlimitedscheduling priority (-e) 0file size (blocks,-f) unlimitedpending signals (-i) 192025max locked memory (kbytes,-l) 64max memory size (kbytes,-m) unlimitedopen files (-n) 655360pipe size (512 bytes,-p) 8POSIX message queues (bytes,-q) 819200real-time priority (-r) 0stack size (kbytes,-s) 10240cpu time (seconds,-t) unlimitedmax user processes (-u) 1024virtual memory (kbytes,-v) unlimitedfile locks (-x) unlimited
这个用于量子:
[quanta@hmaster87 ~]$ulimit -acore file size (blocks,-v) unlimitedfile locks (-x) unlimited
adtech运行的进程数:
[root@hmaster87 ~]# ps -U adtech | wc -l25
还有其他要检查的东西吗?
更新周六7月21日09:21:26 ICT 2012:
# getent passwd adtechadtech:x:500:502::/home/adtech:/bin/bash
正如我在下面的评论中所说,我的同事发现了可能是罪魁祸首的过程:
adtech 12901 1 0 08:58? 00:00:00 /home/adtech/nexus/bin/../bin/Jsw/linux-x86-64/wrapper /home/adtech/nexus/bin/../bin/Jsw/conf/wrapper.conf包装.syslog.IDent = nexus wrapper.pIDfile = / home / adtech / nexus / bin /../ bin / Jsw / linux-x86-64 / nexus.pID wrapper.daemonize = TRUE
adtech 12903 12901 1 08:58? 00:00:24 java -Dsun.net.inetaddr.ttl = 3600 -DbundleBasedir =. -Djava.io.tmpdir =./ tmp -DjettyContext = nexus.propertIEs -DjettyContextIncludeKeys = bundleBasedir -DjettyPlexusCompatibility = true -Djava.library.path = bin / Jsw / lib -classpath bin / Jsw / lib / wrapper-3.2.3. jar:./ lib / plexus-classworlds-2.4.jar:./ conf / -DWrapper.key = ejxHaBJASiFkAB8w -DWrapper.port = 32000 -DWrapper.jvm.port.min = 31000 -DWrapper.jvm.port.max = 31999 -DWrapper.pID = 12901 -DWrapper.version = 3.2.3 -DWrapper.native_library = wrapper -DWrapper.service = TRUE -DWrapper.cpu.timeout = 10 -DWrapper.jvmID = 1 org.codehaus.plexus.classworlds.launcher.启动器./conf/jetty.xml
通过杀死这个过程,问题就会消失,但我们仍然不知道超出了哪个限制.
更新于12月15日星期六00:56:13 ICT 2012:
@ favadi的回答是正确的,但我在这里更新以防有人Google这个帖子.
日志文件说:
jvm 1 | Server daemon dIEd!jvm 1 | java.lang.OutOfMemoryError: unable to create new native threadjvm 1 | at java.lang.Thread.start0(Native Method)jvm 1 | at java.lang.Thread.start(Thread.java:640)jvm 1 | at org.tanukisoftware.wrapper.WrapperManager.privilegedStopInner(WrapperManager.java:3152)jvm 1 | at org.tanukisoftware.wrapper.WrapperManager.handleSocket(WrapperManager.java:3797)jvm 1 | at org.tanukisoftware.wrapper.WrapperManager.run(WrapperManager.java:4084)jvm 1 | at java.lang.Thread.run(Thread.java:662)解决方法 最大用户进程(-u)1024可能太低.
请记住,进程和线程在一起计算.你可以使用ps -eLF | grep adtech | wc -l显示您当前的值.
总结以上是内存溢出为你收集整理的ulimit – 无法切换,ssh到特定用户:su:无法设置用户ID:资源暂时不可用?全部内容,希望文章能够帮你解决ulimit – 无法切换,ssh到特定用户:su:无法设置用户ID:资源暂时不可用?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)