天天看點

jps could not synchronize with target

在啟動程式的時候,使用jps檢視啟動程序時出現:jps could not synchronize with target。程式啟動完成之後,jps輸出正常。後來在網上查了下,如下:

用jps看hadoop的啟動程序,突然報這個錯,後來查到2個sun的bug庫裡的說明

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6602355

http://bugs.sun.com/bugdatabase/view_bug.do;jsessionid=f3d4e72c0f3d61519aed6f056ce?bug_id=6637230

If a debuggee is waiting for a connection, jps
                        fails with msg: Could not synchronize with target      

用strace jps看到 

   futex(0xb7406bd8, FUTEX_WAIT, 4176, NULL32433)

繼續閱讀