Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not find java_path #27

Open
dongbin86 opened this issue Nov 22, 2016 · 2 comments
Open

can not find java_path #27

dongbin86 opened this issue Nov 22, 2016 · 2 comments

Comments

@dongbin86
Copy link

hi,my process use java_path like this :
~/java/bin/java

but at 1204~1205

if 'java_path' not in details: details['java_path'] = ''.join(liverun("which java")).strip().replace("/java", "")
set java_path to "~/bin"
try change to
details['java_path'] = ''.join(liverun("which java")).strip()[:-5]

that works well

@dongbin86
Copy link
Author

get_rotated_log_file
this func seems doesnot work well

because my rotated gc log names like this:hello.log.gc.0.current

java -Xms128m -Xmx128m -Xmn32m -XX:+PrintTenuringDistribution -XX:SurvivorRatio=15 -XX:+UseParNewGC -XX:PermSize=28m -XX:+UseConcMarkSweepGC -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 -XX:CMSFullGCsBeforeCompaction=5 -XX:+HeapDumpOnOutOfMemoryError -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=100M -XX:+UseCMSCompactAtFullCollection -XX:CMSMaxAbortablePrecleanTime=5000 -Xloggc:/home/dongbin.db/gc/hello.log.gc Hello

@dongbin86
Copy link
Author

dongbin86 commented Nov 22, 2016

we may need add “current” to find the gc log

def get_rotated_log_file(gc_log_file):

log_number = 0
while os.path.isfile("{0}.{1}.current".format(gc_log_file, log_number)):
    log_number += 1

if log_number:
    gc_log_file = "{0}.{1}.current".format(gc_log_file, (log_number - 1))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant