X
X

Select Your Currency

₺ Türk Lirası $ US Dollar
X
X

Select Your Currency

₺ Türk Lirası $ US Dollar

How to Measure and Perform Server Optimization

HomepageArticlesTechnical GuidesHow to Measure and Perform Server O...

Server optimization means measuring which resource is causing slowness and changing only that point instead of randomly increasing limits. This guide is designed to investigate slow web requests on an administrator-accessible, Linux-based web server. First record the timing of the same request and the current settings; then compare CPU, memory, disk latency, and application logs before making one safe change.

Define the scope before server optimization

This method is suitable for virtual or physical servers where you can access operating-system and web-server settings. If you only have access to a shared hosting panel, you cannot change kernel, service-pool, or system-cache settings. In that case, review resource usage in the panel and the site’s error logs, then contact the provider with timing information.

First, make the problem measurable. Note the slowly loading URL, its approximate time, whether the request is delayed all the time or only during busy periods, and the most recent configuration change. If the web server’s access log has a response-time field for the same request, use it; otherwise, use the processing time in the application logs. Do not change multiple settings at the same time; otherwise, it will be impossible to determine which change affected the result.

Separate resource bottlenecks by their symptoms

The first decision is to distinguish whether the delay is caused by computation or waiting. If CPU usage remains consistently high and the number of running processes is increasing, application processes may be consuming the available computing capacity. In that case, examining a query, plugin, or application code is more meaningful than increasing memory. If CPU remains low while disk wait time rises, file access, log writing, or storage latency becomes more likely.

If memory usage is approaching its limit, swap space is being used actively, and response times are becoming irregular, first examine the memory consumption of application processes and the number of processes running at the same time. If memory is sufficient but a delay occurs only on the first request, the cache may be warming up or the application may be performing startup work. This finding alone is not a reason to increase all system limits.

Suppose a product catalog becomes slow during busy hours. During measurement, CPU usage remains moderate, while disk wait time becomes noticeable, and the slow requests in the access log coincide with product images. In that case, examining image storage and log-writing behavior is more consistent than increasing the number of processors. If the same observation shows no disk wait, but an application process continuously fills a single CPU core, the target changes: first investigate a slow query or processing loop.

Apply the change safely

  1. Record the current state. Back up the web-server configuration and note the previous value of the setting you will change. Also record the initial response time for the same URL and the system resource view. This record becomes the rollback criterion if the change fails.
  2. Look for new evidence in the correct logs. Review new lines in the web server’s access and error logs for the time interval you noted. If only a specific application request is slow, compare the application log using the same timestamp. If the error log shows insufficient memory or a process limit, address the resource pool; if it shows only a long processing time, examine the relevant code or query.
  3. Choose a targeted correction. If new requests are waiting because of a process limit, adjust the concurrent-process setting of the web server or application runtime pool in a small step, taking the available memory capacity into account. If disk wait and large log files appear together, first reduce unnecessarily detailed logging to a safe, supported level; do not delete the logs. If there is memory pressure, testing with fewer concurrent processes may be safer than increasing the process count.
  4. Validate the configuration. Before applying the change, run the web server’s own configuration-validation function or the test option in the management panel. If you receive an error, do not reload the service; first correct the syntax and compare it with the previous value you recorded. If validation succeeds, apply the change using the controlled reload method recommended by the provider.
  5. Repeat the same operation. After the change, open the same URL that was previously slow under similar conditions. Review the access log and resource indicators again for the new time interval. If the response time has decreased, process-limit entries have disappeared, and no new error has occurred, the change is consistent with the targeted symptom. If the time remains the same, check whether the original finding is genuinely continuing before changing another setting.
  6. Roll back if necessary. If the error rate increases, memory usage rises, or a new configuration warning appears, restore the previous value first and collect new timestamped evidence for the same URL. If the problem continues, examine the application, database, or storage layer separately; instead of raising general limits all at once, follow the provider’s maintenance procedure.

Do not confuse the resource profile with the setting

A setting change helps only when it matches the server’s actual capacity. For example, if memory is already limited, opening more application processes can increase swap usage in exchange for short-term parallelism and worsen total response time. Conversely, if sufficient memory is available but the process pool is unnecessarily small, requests may wait in a queue before reaching the application.

If the workload is continuously growing and measurements repeatedly reach the CPU, memory, or storage limit, the issue is not only configuration. After improving application queries and cache behavior, reassess the resource profile. When reviewing different server options, you may use the server rental options page only to review possibilities; make the suitability decision based on your own measurements and your application’s requirements.

The first next step

Today, choose one slow URL, record the time of the most recent failed or slow request, and compare the access, error, and resource indicators from that time together. Do not change a setting before finding a single piece of evidence that explains the symptom; if you make a change, do not consider it successful until you measure the same request again with a new timestamp.


Top