thread dump script with lwp usage