4 Replies Latest reply on May 25, 2017 4:19 PM by markc9139011

    cpu.sh and diskusage.sh scripts causing issue in AEM 6.1 - environments going down frequently

    cvgsdgsdg Level 1

      The OOTB monitoring scripts (cpu.sh and diskusage.sh scripts)  under /libs/granite/monitoring are causing the environments to go down frequently in AEM 6.1. I have followed the below document to disable the scripts but I still see the error in my error.log

       

      Document followed - CQ5.5: "Too many open files" error due to monitoring scripts

       

      Could you please help me in resolving this issue.

       

      Below are the logs for the same.

       

      14.03.2016 02:50:13.498 *ERROR* [Process Executor for diskusage.sh] com.adobe.granite.monitoring.impl.ShellScriptExecutorImpl Error while executing script /opt/publish/crx-quickstart/monitoring/diskusage.sh

      java.io.IOException: Cannot run program "/opt/publish/crx-quickstart/monitoring/diskusage.sh" (in directory "/opt/publish/crx-quickstart/monitoring"): error=2, No such file or directory

              at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)

              at java.lang.Runtime.exec(Runtime.java:620)

              at com.adobe.granite.monitoring.impl.ShellScriptExecutorImpl$ProcessExecutor.run(ShellScript ExecutorImpl.java:307)

              at java.lang.Thread.run(Thread.java:745)

      Caused by: java.io.IOException: error=2, No such file or directory

              at java.lang.UNIXProcess.forkAndExec(Native Method)

              at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)

              at java.lang.ProcessImpl.start(ProcessImpl.java:134)

              at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)

              ... 3 common frames omitted

      14.03.2016 02:50:13.500 *ERROR* [Shell Script Executor Thread for cpu.sh] com.adobe.granite.monitoring.impl.ShellScriptExecutorImpl Unable to extract script 'cpu.sh' to '/opt/publish/crx-quickstart/monitoring/cpu.sh'

      java.io.FileNotFoundException: cpu.sh

              at com.adobe.granite.monitoring.impl.ShellScriptExecutorImpl.extractScript(ShellScriptExecut orImpl.java:177)

              at com.adobe.granite.monitoring.impl.ShellScriptExecutorImpl.execute(ShellScriptExecutorImpl .java:112)

              at com.adobe.granite.monitoring.impl.ScriptMBean.invoke(ScriptMBean.java:99)

              at com.adobe.granite.monitoring.impl.ScriptMBean.invoke(ScriptMBean.java:158)

              at com.adobe.granite.monitoring.impl.ScriptConfigImpl$ExecutionThread.run(ScriptConfigImpl.j ava:209)

              at java.lang.Thread.run(Thread.java:745)