Skip to main content

What to Do When AhsayCBS Is Unresponsive?

May 9, 2025

Product Version

AhsayCBS: 8 or above

Operating System

All Platforms

Description

When AhsayCBS becomes unresponsive or crashes, it is important to perform a thorough check to identify the root cause.

Solution

When AhsayCBS becomes unresponsive or crashes, it is important to perform a thorough check to identify the root cause.

The following are the important troubleshooting steps to follow:

  1. Check CPU and RAM utilization

    Task Manager

    Open Task Manager or use top/htop on Linux to inspect current system usage.

    Make sure CPU and RAM are not maxed out, which can hinder AhsayCBS operations.

  2. Verify java heap size configuration

    Java Heap Size

    The assigned heap size must be appropriate for the machine's available RAM.

    The Java heap should not exceed 2/3 of the total physical RAM.

  3. Confirm AhsayCBS ports are active

    Active Ports

    Use the following commands to confirm the required AhsayCBS ports are listening:

    • Windows: netstat -ano or netstat -abno
    • Linux: ss -tuln or netstat -tulnp

    Ensure no port conflicts or firewalls are blocking AhsayCBS communication.

  4. Ensure sufficient disk space

    Check Disk Space

    Low disk space may cause service failures or unexpected behavior. Verify if there is sufficient space in the following directories of AhsayCBS:

    • %ApplicationHome% - example: C:\Program Files\AhsayCBS, /usr/local/cbs
    • %SystemHome% - example: C:\Program Files\AhsayCBS\system, /usr/local/cbs/system
    • %UserHome% directories
    • Temporary directory configured for restore drill operations

      Make sure that the temporary directory configured for the restore drill is different from any user home, system home, or application home directories. It is recommended to configure it on a separate drive.
  5. Check for disk errors

    Check Disk Errors

    Check the OS logs below to verify if there are any disk errors:

    • Windows: Event Logs (Application and System)
    • Linux: /var/log/ (e.g. messages and syslog)

    If any disk errors are found, run Check Disk or the appropriate disk utility tools to detect and fix filesystem issues.

    • Windows: chkdsk C: /f
    • Linux: fsck
  6. Restart AhsayCBS service

    AhsayCBS Services

    Try restarting the AhsayCBS service to see if AhsayCBS can be accessed.

If the above checks do not resolve the issue, gather the following information and submit a ticket for further investigation:

  1. Date and estimated time when the issue started
  2. Details of any recent changes to the AhsayCBS application or host machine (e.g. updated, configuration changes, resource modifications)
  3. AhsayCBS log files (C:\Program Files\AhsayCBS\logs, /usr/local/cbs/logs)
  4. OS logs

    • Windows: Windows Event Logs (Application and System)

      C:\Windows\System32\Winevt\Logs\Application.evtx

      C:\Windows\System32\Winevt\Logs\System.evtx

    • Linux: /var/log/ (especially messages and syslog)
  5. Thread Dump and Heap Dump logs from the AhsayCBS process

    To generate for:

    • Windows

      1. Download and unzip the following zip file on the AhsayCBS server: https://download.ahsay.com/support/threaddump/JDK180_181_x64_win_with_script.zip
      2. Open the unzipped folder "JDK180_181_x64_win_with_script, go to the "bin" folder.
      3. Find the Process ID (PID) of AhsayCBS process from the Task Manager > Details. The Name should be "cbssvcX64.exe". Alternatively, in Services, find the PID of "ahsaycbs".
      4. Right click generateHeapThreadDump.bat, then Run as Administrator.
      5. Enter the PID obtained in step c, press Enter.
      6. Compress and send the DumpFiles folder on your Desktop for investigation to Technical Support. Delete the folder and files after sending them to Technical Support.
    • Linux

      1. Download and unzip the following zip file on the AhsayCBS server: https://download.ahsay.com/support/threaddump/JDK180_181_x64_win_with_script.zip
      2. Go to the unzipped JDK180_181_x64_lin_with_script/bin.

        cd JDK180_181_x64_lin_with_script/bin 
      3. Make jstack and generateThreadDump.sh to executable.

        chmod +x jstack jcmd 
      4. Find the Process ID (PID) of the AhsayCBS process. Run ps -aux|grep java command to list all the processes using java to run. Find the process running /usr/local/cbs/java/bin/java, the PID the number next to the word root.
      5. Run the following commands:

        ./jstack -J-d64 -l $PID > /usr/local/cbs/threaddump.log
        ./jcmd $PID GC.heap_dump /usr/local/cbs/heap.hprof 

        Replace $PID with the number you obtained in step d.

      6. Send to Technical Support the threaddump.log and heap.hprof file for investigation.