Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk10 min

How to Set CPU and Memory Limits for Apps in Coolify

Configure and verify per-application CPU and memory limits in Coolify, with valid formats, sizing guidance, Docker boundaries, and fixes for OOM exits or failed health checks.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Coolify controls an application’s container resources from its Resource Limits settings. Enter the CPU and memory values, save them, then redeploy or restart the application so Coolify recreates the containers with the new Docker limits. Confirm the result in Metrics and Runtime Logs while the app handles representative traffic.

What resource limits do in Coolify

Each Coolify application runs in one or more Docker-managed containers. The values in Resource Limits are translated into Docker runtime settings when Coolify creates those containers. A limit therefore applies when the container is created or recreated; merely typing a value into the form does not alter an already-running container.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

CPU and memory controls solve different problems. CPU settings govern how much processing time a container may use and how it competes with other containers. Memory settings determine the amount of RAM Docker accounts for, the hard ceiling at which the process can be terminated, and whether swap can contribute to the total. A setting that looks reasonable in isolation can still break an application if it is below the application’s actual working set or leaves too little CPU for health checks.

Measure the application before choosing values

Start with observed behavior rather than a default number. Run the application under the traffic and jobs it normally handles, then record the values that matter:

#1 Best Overall
Sale
TOZO A1 Wireless Earbuds Bluetooth 5.3 Light Weight in Ear Headphones | IPX5 Waterproof,2 Mics for AI Calls,Immersive Premium Sound Bass Headset with Charging Case,32 EQ via App Black
  • [Ultra-Lightweight Ear Buds Designed for Small Ears] Each earbud weighs only 3.7g and features a compact, ergonomic in-ear design made especially for small ears. Secure, low-profile, and comfortable for workouts, all-day wear or overnight sleeping.The ultra-slim profile sits flush in your ear with no hard edges poking or rubbing, so you can even sleep on your side without discomfort.
  • [Immersive Stereo Sound with TOZO OrigX Technology] TOZO OrigX tuning delivers clear vocals, balanced mids, and natural stereo sound for music, podcasts, and videos.
  • [Long Battery Life for Daily Use] Get up to 7 hours of playtime on a single charge, with up to 32 hours total using the charging case—ideal for workdays, commuting, and extended listening sessions.
  • [Bluetooth 5.3 & Stable Connection] Bluetooth 5.3 provides fast pairing, stable wireless performance, and reduced dropouts as you move around home or office.
  • [Deep Bass with Clear Vocals] High-performance drivers produce punchy bass while keeping vocals clean and detailed for everyday listening.
  • CPU utilization during ordinary requests and during the busiest recurring operation.
  • Peak memory usage, not just the idle value.
  • Whether swap is used and how memory behaves as traffic continues.
  • Health-check success and response latency while the workload is active.
  • Container restarts, out-of-memory exits, or other failures in Runtime Logs.
  • Unused CPU and memory on the host after the application and its neighboring services are running.

The goal is to leave headroom above the measured working set. A hard memory limit below that working set allows Docker to terminate the process for running out of memory. A CPU limit that is too low can delay the application enough for health checks to time out, even when the code itself is functioning correctly.

Set limits in the Coolify interface

  1. Open the relevant application in Coolify.
  2. Select Resource Limits.
  3. Enter the CPU and memory settings described in the sections below. Leave a field at 0 when you want no configured limit for that resource.
  4. Select Save changes.
  5. Redeploy or restart the application. This causes Coolify to recreate the container with the saved Docker settings.
  6. After the new container is running, open Metrics, review Runtime Logs, and send representative traffic while watching response times.

If you save a value but do not redeploy or restart, the existing container may continue running with its previous configuration. Verification is part of the change: a value shown in the form is not proof that the running container received it.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Configure the CPU controls

CPU limit

CPU limit is the maximum CPU quantity available to the container. It accepts a whole or decimal number, such as 2 or 0.5. A value of 0 means no configured CPU limit, allowing the container to use all CPUs available to it under the host and other container constraints.

Use a decimal when the workload should receive less than one CPU, and a whole number when it may use multiple CPUs. The limit is a ceiling, not a promise that the container will receive that amount continuously. Actual throughput still depends on contention, the application’s concurrency model, and the other services on the host.

CPU set

CPU set pins the container to specific logical CPU numbers. Enter individual CPUs or ranges, for example 0-2 or 0,1,3. A range such as 0-2 includes CPUs 0, 1, and 2; a comma-separated value selects the listed CPUs.

Pinning can isolate a workload from other services, but it also reduces the CPUs available to that container. Check the host’s CPU numbering and leave enough processors for the operating system, Coolify, and other containers. Do not use a CPU set as a substitute for a CPU limit when your objective is simply to cap total CPU time.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Sale
Smart Watch for Men Women Compatible with iPhone Samsung Android Phone 1.69 inch Full Touch Screen IP68 Waterproof Bluetooh Fitness Tracker Heart Rate/Sleep Monitor (Black)
  • 【IP68 Waterproof Multifunctinal Smart Watch】Torjalph fitness activity tracker smart watch is IP68 waterproof technology ,you can wear it when swimming,handwashing,it's rain-proof which means that you perform multiple exercise modes outside without worrying about sweat or rain corroding your fitness smart watch,and this watch equipped with a 230 mAh large capacity battery magnetic charging ,and this sports activity tracker watch can be used 5-7 days If fully charged.
  • 【Larger 1.83'' Full Screen Watch & Multi-dial Selection】1.83 inch full HD color touch screen smart watch for men / women provides excellent 240*284 resolution image quality ,This Bluetooth smart watch offers a better touch experience and remarkable immersion and ,more than 200 watch faces for you to choose from App"Da Fit ", you can change the dial style according to your mood to wear keeping the world on your wrist
  • 【Accurate Activity Tracker Smart Watch 】sports watch activity tracker uses sweat and dust resistant breathable silicone strap, our Fitness Tracker Smart Watch for Android iOS Phones supports 12 sports modes,walking,running,bicycle,swimming,badminton,basketball,football,rope skipping. This bluetooth calls smart watch for men women is lightweight and stylish, bringing more convenient and relaxing sports experience while also providing more protection.
  • 【Your 24 Hour Personal Daily Health Monitor】Fitness watch for women men full touch screen IP67 waterproof bluetooth smartwatch for Android iOS Phones with heart rate blood pressure monitor multifunction Andriod smart watch with steps counter sleep monitor sports fitness watch, monitoring blood oxygen saturation allows you to understand your physical condition in real time to track fitness progress ,to know your health status in time.
  • 【More Functions Bluetooth Call Smart Watch】This fitness activity smart watch full screen for iPhone and Android phones includes a bunch of new features including:The bluetooth smart watch can hang up the phone, receive and display WhatsAPP /Text /Facebook /Twitter /Messenger reminder.Support sedentary reminder, alarm clock, stopwatch, timer,weather information,music control, remote camera control compatible with Android 5.0 and above or iOS 9.0 and above smartphones.

CPU weight

CPU weight controls relative priority when containers compete for CPU time. The documented default is 1024, and the field accepts a whole number of 0 or greater.

Weight is proportional priority during contention, not reserved capacity. Increasing a container’s weight does not reserve a CPU or guarantee a fixed percentage of processing time; it only changes how Docker shares the CPU time that is available at that moment. A high weight therefore cannot compensate for a host that is already out of CPU capacity.

CPU field Accepted example Effect
CPU limit 2, 0.5, or 0 Sets a maximum CPU quantity; 0 leaves the limit unconfigured.
CPU set 0-2 or 0,1,3 Restricts execution to the selected logical CPUs.
CPU weight 1024 by default Changes relative sharing during contention; it does not reserve capacity.

Configure the memory controls

Accepted memory format

Memory fields accept 0 or a number followed by b, k, m, or g. Units are case-insensitive, so values such as 256m and 1g are valid. Use one unit consistently in each field and check the saved value before redeploying.

Memory field Meaning Example
Memory reservation Advises Docker’s memory-pressure accounting about the amount the container should have available. It is not the hard kill threshold. 256m
Memory limit Sets the hard RAM cap. Exceeding it can lead Docker to terminate the process for running out of memory. 1g
Memory and swap limit Sets the total of memory plus swap available to the container. 1g
Swappiness Controls the container’s willingness to use swap, from 0 through 100. The documented default is 60. 60

How the memory values interact

The reservation and limit serve different purposes. Reservation influences pressure accounting, while the memory limit is the enforceable ceiling for RAM. The memory-and-swap limit is a combined total, so it should be considered alongside the RAM limit rather than treated as additional physical memory.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Swappiness is a policy value, not extra capacity. A setting between 0 and 100 changes how readily memory may move to swap; it does not increase the amount of RAM installed in the server. If swap activity rises, application latency may rise as well, so inspect both memory and response-time metrics after changing it.

Choose CPU and memory values without guessing

CPU sizing

Compare the application’s measured CPU utilization with the CPU limit you intend to apply. Test both normal requests and the heaviest operation that users or scheduled jobs generate. If health checks begin timing out after a cap is applied, the limit is too restrictive for that workload or the check interval is being reached before the process can respond.

Rank #3
New Bee Guitar Cable 10ft Electric Instrument Bass AMP Cord
  • [Low Noise High Fidelity] New bee guitar cord with 22AWG oxygen-free-copper center conductors provides enhanced signal transfer, the PVC insulation material and the high-density stranded copper double shield provide noise rejection for quiet operation
  • [Ideal for Choice] New bee 1/4 straight and right angle metal connectors, ensures a secure connection in any instrument, pedal, or amp jack. L shape great fro on stage guitar stands
  • [Wide Compatible] Suitable for mixer, power amplifier, microphone, effector, decoder, equalizer, electoronic organ, electric guitar, electric bass and other electronic equipments. Widely used in the installation of smart home, karaoke speaker, professional stage audio, etc
  • [Easy Disassemble] Making incidental repairs quick and easy! Very nice, flexible cable
  • [Dont Hesite to Order] 24 hours customer services and professional technology team are standing by

When several containers share the host, decide whether you need a ceiling, isolation, or priority:

  • Use a CPU limit to stop one container from consuming more than a defined amount.
  • Use a CPU set when the workload must run only on selected logical CPUs.
  • Use CPU weight to influence which containers receive more of the available time during contention.

These controls can be combined, but none creates CPU capacity that the host does not have. A container with a generous weight can still be throttled by its CPU limit or by the host’s total load.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Memory sizing

Measure peak working-set usage while the application performs its real work. Set the hard memory limit above that peak so short-lived allocations do not cross the cap, while keeping the value within the RAM the host can actually supply. If the process grows beyond the limit, Docker may terminate it rather than allowing uncontrolled host-wide memory pressure.

Choose the reservation to reflect the memory the service should have available under pressure, then evaluate the memory-and-swap total and swappiness together. Watch for swap use and latency, not just whether the process remains alive. A configuration that avoids an immediate out-of-memory exit can still produce unacceptable response times if it relies heavily on swap.

Verify the change after redeploying

Check Metrics

Open the application’s Metrics view after the recreated container is serving traffic. Confirm that CPU and memory behavior matches the intended settings and compare the observed peak with the new limit. Look for sustained CPU saturation, memory growth, and swap activity rather than relying on a single instantaneous reading.

Review Runtime Logs

Inspect Runtime Logs for out-of-memory exits, repeated restarts, and health-check failures. An application that repeatedly starts and stops may have a limit below its startup working set, while a service that stays up but fails checks may be CPU-starved or otherwise unable to respond in time.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
BSIMB 15.6" Digital Family Calendar & Chore Chart, No Subscription Fees
  • Digital Family Calendar: BSIMB digital calendar wall touch screen puts an end to your chaotic life. Designed for busy families, the digital calendar keeps you organised and in step with your family. Assign different colours and tasks to each family member to make family scheduling easier and more intuitive.
  • Easy Setup and Auto-Sync: Plug in, connect to WLAN and auto-syn your electric calendar in minutes. Digital wall calendar compatible with Google calendar, iCloud calendar, Outlook calendar, Cozi calendar and Yahoo calendar. Add events directly on the device or through the ecalendar app. Electronic calendar stays current whether you're at work or traveling—no manual updates needed.
  • All-In-One Home Assistant: Smart calendar builds habits and encourage independence with personalised chores. Display daily meal plan to reduce the daily ‘What's for dinner?’ stress. To-do lists keep track of everything you want. Turning chores into valuable achievements with stars and rewards, making life easier and more enjoyable.
  • Manage Anytime Anywhere: BSIMB electronic calendar for family stay connected with the powerful ecalendar app. Access and manage your digital wall calendar anytime, anywhere with free features like stars & rewards, photo screensaver, chore charts, meals plans, to-do lists etc. Electronic planner paid features like Magic Import tailor advanced tools for users with special needs.
  • Stay in Touch with Loved Ones: Share photos or videos from your phone to electronic wall calendar with app, instantly update your life moment, and keep in touch with your family, especially those who are far away; you can also surprise your smart calendar digital wall by sending him a wish card; it's also great for keeping tech-illiterate elders in touch with the youngsters.

Exercise the normal workload

Send representative traffic, including the endpoints or jobs that normally consume the most resources. Confirm that response times remain acceptable while Metrics and Runtime Logs show the container operating within its limits. Testing only an idle page can hide a peak-memory or CPU-contention failure.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshoot common failures

The container restarts or logs show an out-of-memory exit

First compare the recorded peak memory with the hard memory limit. If the limit is below the application’s working set, raise it and redeploy, or reduce the application’s own memory demand before applying the cap again. Also check whether the memory-and-swap total is constraining the container sooner than expected and whether swap activity is causing instability.

Do not treat repeated restarts as a successful enforcement mechanism. The limit is working as configured, but the value is unsuitable for the application’s current workload. Re-test startup, ordinary traffic, and the largest expected operation after adjusting it.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Health checks time out after a CPU change

Review CPU utilization and health-check failures together. A low CPU limit can leave the process unable to complete a check before its timeout under load. Raise the CPU limit, adjust the CPU set if the process has been pinned too narrowly, or revisit the workload that causes the spike. Changing CPU weight alone will not help if the container is already hitting its hard CPU limit.

The form shows the new value but behavior does not change

Confirm that you selected Save changes and then redeployed or restarted the application. Coolify applies these settings when it recreates the container. Verify the new runtime behavior in Metrics rather than assuming the running container was modified in place.

A direct Docker change disappears

Coolify owns the lifecycle of its managed containers. A manual Docker change can be overwritten the next time Coolify recreates the container, so it is not a durable configuration method. Put lasting resource changes in Coolify’s resource settings or in the source Docker Compose file.

Understand the Coolify, Docker, and Compose boundary

Coolify translates the saved resource settings into Docker operations. If the application is defined with Docker Compose, the Compose file is another durable place for resource configuration, provided it remains the source that Coolify deploys. Keep the chosen source of truth consistent so a later deployment does not silently replace the values you changed elsewhere.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Custom Docker Options is intended for supported runtime flags such as --shm-size and --ulimit. Use the dedicated CPU and memory fields when they provide the setting you need. Adding ad hoc options is not a substitute for a CPU limit, memory limit, reservation, or swap policy, and unsupported flags can prevent a deployment from starting.

Know when the host is the bottleneck

Limits cannot create resources that the server does not have. If measured demand is greater than the host can supply even after sensible per-container settings, Coolify’s scaling guidance is to resize the current server or move the resource to a larger server.

Compare the infrastructure choices using the workload’s actual constraints:

  • Available CPU and RAM, including headroom after system and neighboring services are counted.
  • Storage capacity and performance for databases, uploads, and logs.
  • Network throughput and any provider-imposed limits.
  • Geographic location relative to users and dependent services.
  • Reliability characteristics and the recovery options you need.
  • Total cost, including the recurring price of the larger or additional server.

After resizing or moving the resource, repeat the Metrics, Runtime Logs, and representative-traffic checks. A larger host changes the available capacity, but the application’s limits still need to be reviewed for the new placement.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Practical configuration examples

Limit a small web service to half a CPU

Enter 0.5 in CPU limit, leave CPU set empty unless you have a placement reason, and keep CPU weight at its default unless contention testing shows that the service needs a different relative priority. Redeploy, then check whether health checks and response times remain stable during the busiest expected requests.

Allow two CPUs while pinning execution

Enter 2 for CPU limit and a CPU set such as 0-2 when the service should run only on those logical CPUs. Because the set contains three logical CPU numbers while the limit caps total CPU quantity at two, verify the result under load instead of assuming all selected CPUs will be used simultaneously.

Apply a one-gigabyte memory ceiling

Enter 1g as the memory limit only after measuring that the application’s peak working set fits below it with headroom. Set reservation and memory-and-swap values deliberately, then watch for out-of-memory exits, restarts, swap use, and latency in the post-deployment test.

Final checklist

  • Measured CPU, peak memory, swap behavior, health checks, latency, and host headroom before changing limits.
  • Used valid CPU values, CPU-set syntax, and memory units.
  • Distinguished CPU weight from reserved capacity and memory reservation from the hard limit.
  • Saved the settings and redeployed or restarted the application.
  • Checked Metrics, Runtime Logs, and representative traffic.
  • Stored lasting changes in Coolify or the source Compose configuration rather than making one-off Docker edits.
  • Resized or moved the resource when the host could not provide the required CPU or memory.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.