The Problem
Java installed on an OpenVZ container. When a user executes a Java CLI application, the following warning is displayed as a first line of standard output:
Java HotSpot(TM) Client VM warning: Can't detect initial thread stack location - find_vma failed
Analysis
Java needs access to /proc
Solution
- Add user to group adm
- Change mode of /proc to 555
Java HotSpot(TM) Client VM warning