Example
protected void doGet(HttpServletRequest arg0, HttpServletResponse arg1) {
String path = System.getenv("path");
}
Solution
Instead of using getenv(), use ServletConfig to pass configuration information into servlets at startup, and remove calls to gc(), exit(int), and runFinalization().