Skip to main content

Performance and Resource Errors

This page shows how to resolve common performance and resource problems on self-hosted Appsmith, including instances running out of memory, high CPU, slow apps and queries, gateway timeouts, and scaling.

Appsmith server is taking too long to respond​

Appsmith server is taking too long to respond. Please try again after some time

Cause​

The Appsmith server is unreachable or crashing. A common root cause on self-managed deployments is that no persistent volume is mounted to the Appsmith pod, so the instance is left in a bad state on restart. Missing readiness and liveness probes make this worse by keeping unhealthy pods in rotation.

Solution​

  • Mount a persistent volume to the Appsmith pod so configuration and data survive restarts. See Self-hosting Best Practices and High Availability Setup on Kubernetes.
  • Configure readinessProbe and livenessProbe so unhealthy pods are restarted and removed from rotation. The Appsmith Helm chart configures these probes for you. See Health probes for the defaults and how to override them. If you deployed with your own manifests rather than the Appsmith Helm chart, add these probes to your deployment.
  • Collect the server logs covering the time of the crash (not just after the restart) and share them with support. See How to Get Container Logs.

Pod restarts after saving admin settings​

Cause​

Saving some admin settings restarts the Appsmith server inside the container. The restart takes about 45 seconds, and the health check fails while it runs. Helm charts older than 3.9.2 ran the liveness probe every 60 seconds with a 1-second timeout and restarted the container after three failures in a row. When you save settings several times in a row, each server restart can land on a liveness check, and Kubernetes kills the container in the middle of a restart. The 1-second timeout also lets a slow but working server fail a check.

The same thing can happen on a newer chart if a probes override in your values.yaml sets a short timeoutSeconds, a low failureThreshold, or a long periodSeconds.

Solution​

  • Upgrade to Helm chart 3.9.2 or later. Its liveness probe runs every 10 seconds with a 5-second timeout and restarts the container only after 180 seconds of continuous failure. A single successful check resets the count, so a series of restarts doesn't add up to a container restart.
  • If you override probes, remove the liveness overrides or raise timeoutSeconds and failureThreshold. See Health probes.

Instance runs out of memory (OOM) or fails health checks​

Cause​

When the Appsmith instance is undersized, the backend can start and then be terminated mid-startup, often because a health endpoint marks it unhealthy or because the process is killed under memory pressure (OOM). This is common on platforms with strict health checks such as AWS Elastic Beanstalk and AWS ECS.

Solution​

  • Increase the memory allocated to the instance. Support has resolved health-check and OOM cases by raising available memory.
  • Ensure the instance meets the minimum size: t3.large or equivalent (2 vCPU, 8 GB of memory). See Self-hosting Best Practices.
  • On platforms with health checks, increase the failed-health-check threshold or extend the health-check timeout so the service has time to stabilize before being marked unhealthy.

Pod restarts during first startup on Kubernetes​

Cause​

On first start, the Appsmith server runs every database migration before it starts to accept requests. Against a remote MongoDB, such as MongoDB Atlas, this can take several minutes. While the migrations run, the Helm chart's startupProbe fails. When the startup probe reaches its failureThreshold, Kubernetes restarts the container before the server finishes starting.

Helm charts older than 3.9.2 ran the startup probe every 60 seconds and restarted the container after three failures, which allows about 180 seconds to boot. Chart 3.9.2 and later run it every 10 seconds with a 5-second timeout and a failureThreshold of 60, which allows 600 seconds. The liveness and readiness probes start only after the startup probe succeeds.

Solution​

  • Upgrade to Helm chart 3.9.2 or later.

  • If the first boot still takes longer than 600 seconds, raise failureThreshold under probes.startupProbe in your values.yaml. The startup window is periodSeconds multiplied by failureThreshold. For example, this allows 900 seconds:

    probes:
    startupProbe:
    periodSeconds: 10
    failureThreshold: 90

    Then apply the change:

    helm upgrade -i appsmith-ee appsmith-ee/appsmith -n appsmith-ee -f values.yaml

    periodSeconds and failureThreshold must be positive integers. Other values, such as 0, make helm install and helm upgrade fail with a schema validation error.

  • If you stay on a chart older than 3.9.2, set both periodSeconds and failureThreshold under probes.startupProbe so their product covers your boot time, for example periodSeconds: 10 and failureThreshold: 60 for 600 seconds.

The startup probe stops after its first success, so a longer startup window doesn't change how quickly Kubernetes detects a failure on a running server. For all probe defaults and override keys, see Health probes.

High CPU and memory usage with few users​

Cause​

CPU and memory can spike to 100% even with very few active users. In some cases this has been tied to a specific operation triggering excessive memory usage on an undersized instance.

Solution​

  • Confirm the instance meets the minimum size of t3.large or equivalent (2 vCPU, 8 GB of memory). Setups running on 2 vCPU / 4 GB are below this recommendation. See Self-hosting Best Practices.
  • For spikes tied to a specific operation, increase the memory available to the instance and share the server logs for the affected time window with support so the operation driving the spike can be identified. See How to Get Container Logs.

App or page loads slowly​

Cause​

Slow app and page loads are frequently caused by queries that fetch large datasets, by multiple actions running at once on page load, or by too many widgets on a single page. Backend query latency and client-side scripting both contribute to the total time.

Solution​

  • Enable server-side pagination so only the required rows are fetched at a time. See Server-side Pagination in Table and Set up Server-side Pagination on List.
  • Defer actions until the data is actually needed (just-in-time), rather than running many queries at once on page load.
  • Split heavy pages so a single page does not load too many widgets at once.
  • Optimize the underlying database queries, especially when many parameters drive a complex query.
  • If the problem persists, share your Appsmith version (append /info to your instance URL), a screen recording, and a browser performance profile of the page with support.

Scaling to multiple replicas or high availability​

Cause​

Running multiple Appsmith replicas without shared storage leads to restarts and inconsistent behavior. Configuration is written to /appsmith-stacks/configuration/docker.env on the filesystem; if that is not in sync across containers, the result ranges from unexpected behavior to data loss. Running multiple replicas against unshared local storage is not a tested or supported configuration.

Solution​

MongoDB or Redis resource pressure causes slowness​

Cause​

Appsmith depends on MongoDB (system database) and Redis (caching and session data). Platform-wide slowness is often traced to these dependencies: MongoDB memory utilization sitting consistently near its limit, MongoDB pod restarts caused by running on spot instances, or Redis spending too long writing to disk on slow or overloaded storage.

Solution​

  • Increase the memory limit for the MongoDB container when utilization is consistently high.
  • Run MongoDB and Redis on on-demand (reserved/dedicated) instances rather than spot instances, which are terminated unexpectedly and cause restarts. See Self-hosting Best Practices.
  • For Redis disk-write latency, set explicit CPU/memory limits and move Redis to a faster storage tier.
  • To diagnose, check the status and logs of the MongoDB and Redis pods, and test Redis responsiveness from the Appsmith pod. See How to Get Container Logs.

Large audit logs consuming disk and slowing the instance​

Cause​

The audit log collection can grow very large over time, consuming disk space and impacting performance.

Solution​

  • Export old audit logs first if you may need to reference them, then delete the old records from the database. Clearing the records has no impact on the system. For accessing and exporting audit log data, see Audit Logs and Export Audit Logs.
  • For automatic cleanup, see the audit log retention steps in Monitoring and Audit Log Errors.