Solution: FUTEX_WAIT hangs Java on Linux / Ubuntu in vmware or virtual box
来源:互联网 发布:程序员就是堆砌代码吗 编辑:程序博客网 时间:2024/06/05 06:05
Ok, I'm documenting this for those that hit this same problem. Is it taking a LONG time to run some Java app, making it seemingly hang? This happens when running Ubuntu or any flavour of Linux in VMware or Virtual Box. I d/l a pre-made image of Ubuntu Server 9.10 from http://www.thoughtpolice.co.uk/vmware/, put JDK 1.6_18 on it, and went on with installing some app servers and other stuff for setting up a Hudson SWARM.
I attempt to start some Java procs, and they took a long time to start. I broke out strace to see what the hell was going on, and it seems that the procs were getting stuck in FUTEX_WAIT. Googling FUTEX_WAIT lead to many false solutions. Further examination of the strace pointed to some stuff happening in /dev/random just before the FUTUX_WAIT. On a hunch, I reconfigured the /dev/random like so:
rm /dev/random
mknod -m 644 /dev/random c 1 9
and VOILA! things started working normally. Hopefully, you get here via a google search and find this solution to save you a couple of hours of agony.
- Solution: FUTEX_WAIT hangs Java on Linux / Ubuntu in vmware or virtual box
- Oracle Linux 6.3 Installation on Virtual Box
- VMware与Virtual Box
- Virtual-Box and ubuntu
- ubuntu 安装virtual-box
- Virtual Box和VMware Workstation
- QEMU,virtual box,virtual pc,vmware虚拟机
- learn LDD (Linux device driver) using virtual box + ubuntu 10.04
- Ubuntu 安装 Virtual Box 记录
- Virtual Box Ubuntu共享设置
- Virtual Box装Ubuntu系统
- virtual box Ubuntu 连接手机
- virtual Box 运行 Ubuntu 常见问题
- About install linux ON virtual PC by use of VMware
- vmware和virtual box虚拟机转换
- lcov solution on linux
- 安装VMware Tools in a Linux Virtual Machine
- Linux下安装virtual box
- WebService基于SoapHeader实现安全认证[webservice][.net][安全][soapheader]
- win2003 sp2无法安装或重装IIS的解决方法
- Redhat 5.5 linux下安装oracle10g客户端
- PostgreSQL Query 优化体验
- ASP.NET常用的代码
- Solution: FUTEX_WAIT hangs Java on Linux / Ubuntu in vmware or virtual box
- Java栈和栈桢
- 向解决方案资源管理器的工具栏增加按钮
- VS2005下使用VC,部分断点无效,当前不会命中断点
- 谈悲观、执著、超脱——周国平
- 未婚老婆的一篇日记 《很庆幸你一直都在》
- CFile写入中文,正常显示并换行
- delphi应用SynEdit完美实现SQL语法高亮
- CAS单点登录(SSO)完整教程(2011-11-18更新)有war包,mysql