Home > AI > Server >

VPS Server high CPU consumption

We’ve observed the CPU usage consistently reaching 100%, which has notably slowed down the SpringBoot application’s Page Loading Time.

XRDP

Through the top command analysis, we identified XRDP (X Remote Desktop Protocol) as the primary CPU-consuming application.

Initially suggested by Prahlad from Nepal as a means to transfer files between local and server, the remote desktop method was found ineffective. Instead, upon Richard’s recommendation from Indonesia, we opted for the ‘rsync’ tool, which proved to be highly efficient for file copying. Consequently, we decided to uninstall the XRDP application.

cPanel

An additional cPanel created for hosting ‘codehub.cowpte.com’ for GitLab was removed. The process involves logging into WHM, navigating to Account Functions, and selecting ‘Terminate Account’.

GitLab

Previously, we considered hosting our code on codehub.cowpte.com, where GitLab was utilized to allow direct code uploads to our server. However, several concerns arose subsequently, prompting us to reconsider this approach.

Firstly, security became a significant worry. While GitHub, our chosen code repository, is managed by a robust third-party service, self-hosting GitLab raised concerns about potential code compromise. Hosting GitLab internally meant that our entire codebase resided within our server. This heightened the risk, as unauthorized access to the server would grant access to all our code, which presented a substantial security concern. Presently, server access is restricted solely to me, ensuring enhanced security measures.

Additionally, installing and maintaining GitLab proved to be cumbersome, and the application demanded a considerable amount of server resources, which further fueled our decision to uninstall it.

Conclusion

Given the server’s significance, our approach prioritizes the removal of redundant or impractical applications, ensuring a more concise and secure environment.

Relevant tags:

Leave a Reply