mysql - Java Running at close to 100% CPU -
too logging activity on weekend led following error being thrown coldfusion:
message: no space left on device stacktrace: java.io.ioexception: no space left on device @ java.io.fileoutputstream.writebytes(native method) @ java.io.fileoutputstream.write(fileoutputstream.java:269) @ coldfusion.compiler.neotranslator. ...... by morning pages on coldfusion web site not loading @ all. disc (12gig) on 99% used up. moved several files second disc , it's @ 80%, lower it's been. we're going direct logging activity second disc (100gig) prevent repeat. having created space on disc restarted apache , coldfusion still pages not loading.
when run top -h appears java running @ close 100% cpu. have clue what's going on or info need provide can figure out?
the set aws, ubuntu 13.04, coldfusion 10, mysql (rds).
update
i have made strange helpful observations. i still trying locate tool getting thread dumps. whenever restart coldfusion, pages load fine , cpu usage seems normal, 0.7 - 1.5% once in while spikes of 10% can seen. there's 1 particular page, when try load, causes cpu uses rise 97% always. pages load fine have simple query reading data 1 table. problematic page has inner join, , reads data 2 tables. don't know how helpful think consistent insignificant.
update 2
and since issue started following errors appeared first time , there're hundreds of lines of it:
[2243:140630871263104] [error] ajp_send_request::jk_ajp_common.c (1649): (cfusion) connecting backend failed. tomcat not started or listening on wrong port (errno=111) // , [2234:140630871263104] [info] ajp_connect_to_endpoint::jk_ajp_common.c (1027): failed opening socket (127.0.0.1:8012) (errno=111) // , [2756:139822377088896] [info] jk_handler::mod_jk.c (2702): no body status=500 worker=cfusion update 3 - resolved
after stripping "offending" page of code in , replacing plain text , tried load page several times, realized coldfusion not loading live pages. loading cached compiled versions of pages, found in subfolder named <cf-root>/cfusion/wwwroot/web-inf/cfclasses. removing (or renaming) subfolder resolved issue.
you want provide thread dumps, few of them taken @ few seconds interval, , gc logs.
thread dumps can produced jstack (a tool provided in jdk's bin directory), , garbage collector logs must activated beforehand.
Comments
Post a Comment