# Understanding the "System Busy" Error: Causes and Solutions

# Overview:

When analyzing large files, the yCrash application requires sufficient heap memory to load and process the file efficiently. To ensure the process runs smoothly and avoids memory-related issues, the yCrash application checks whether the system has sufficient available memory to handle the file size before starting the analysis. If there isn't enough memory available, the tool temporarily prevents further requests to avoid performance degradation or failures.

# Why Am I Seeing This Error?

This error appears when another analysis is already in progress, and the system does not have sufficient free memory to handle an additional request. To protect stability, the yCrash application will not start a new analysis until enough memory becomes available.

In such cases, the tool will display the following message:

System Busy: The tool is currently processing other requests and temporarily cannot handle new requests. Please try again in a few minutes.

# How to Fix This Issue?

To resolve this error and allow the yCrash application to process the file, consider the following steps:

# 1. Increase -Xmx Size:

Consider increasing the -Xmx value configured for the yCrash application in the launch-yc-server.sh or launch-yc-server.bat script. A higher -Xmx value allows the yCrash application to handle multiple concurrent analyses without running out of memory. This error can occur in two situations:

  • During concurrent analysis: When one file is already being analyzed, and another file is uploaded at the same time. For example, if your heap dump or app log file size is 4 GB and you have configured -Xmx to 8G, uploading a second file while the first analysis is still in progress may trigger this error.

  • After a large file analysis: When a large file has already been analyzed, and its memory is not yet fully released, uploading another file may not leave enough memory to begin a new analysis.

In both cases, increasing the -Xmx value further will allow the application to accommodate the requests.

Note:

  • Heap Dump: We recommend setting -Xmx to 1.25x to 2x the uncompressed heap dump file size to ensure successful analysis.
  • App Log: We recommend setting -Xmx to 1.35x the uncompressed app log file size to ensure successful analysis.

# 2. Wait for the System to Become Available:

If the tool is currently processing another request, wait a few minutes and try again. The error may occur if there is a high number of concurrent requests, and the system is temporarily busy.

# 3. Close Unnecessary Applications:

Close any other unnecessary applications or processes running on the system to free up memory. This will increase the available memory for the file analysis.