Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 Yesterday 05:53:41

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,358
Website GitHub Mastodon Twitter

RAM usage

I just received an email from our host that The RAM usage on our VPS, has been running at 90% of its available capacity of 1 GB.

We have been using the same server for about 5 years now and I never had this problem. Is there a txp way that checks how much ram each one of ours sites are using?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#2 Yesterday 09:36:15

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,144
Website GitHub

Re: RAM usage

I periodically get automated messages from one host, but on checking, it was only temporary peaks on a low-usage server, so I’ve ignored them. Does your server panel show a trace of the CPU usage?


TXP Builders – finely-crafted code, design and txp

Offline

#3 Yesterday 16:11:40

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,358
Website GitHub Mastodon Twitter

Re: RAM usage

jakob wrote #342092:

I periodically get automated messages from one host, but on checking, it was only temporary peaks on a low-usage server, so I’ve ignored them. Does your server panel show a trace of the CPU usage?

I can only get this graph from the past 15 days. I wish they could let me know of the usage 2 months ago.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#4 Yesterday 16:37:55

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,342
Website GitHub

Re: RAM usage

The tag trace will show you query times, ram usage and page load times. Might help you kd.rtify any high usage queries.

Briefly flick debugging on, refresh a page, view source then shut debugging off while you comb the bottom of the source code to analyse the results. (I know you know how to show debugging info: this is just for future reference or newbies who come across this thread).


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#5 Yesterday 22:16:22

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 5,144
Website GitHub

Re: RAM usage

colak wrote #342095:

I can only get this graph from the past 15 days.

Hmm, that does look the site runs at a fairly consistently high level but you probably scraped the 90% briefly, triggering the email.

I wish they could let me know of the usage 2 months ago.

What would have been different then?


TXP Builders – finely-crafted code, design and txp

Offline

#6 Today 08:02:57

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,358
Website GitHub Mastodon Twitter

Re: RAM usage

jakob wrote #342105:

What would have been different then?

It was more or less the time I have replaced all the jquery javascripts.

I really have no idea what has changed beyond that. If anything, I optimised the code slightly. Also, I do not know which site is consuming the memory as I’m currently running 3 txp sites in the server.

I’ll be flat out with our upcoming until mid next week, at which time I’ll write to the host and see how I can detect the issue. Putting the NeMe site in debug mode showed nothing, except a minor error in my tags which I corrected. I’ll have to check how the other sites are behaving.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#7 Today 14:20:47

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,661
GitHub

Re: RAM usage

colak wrote #342110:

I really have no idea what has changed beyond that. If anything, I optimised the code slightly. Also, I do not know which site is consuming the memory as I’m currently running 3 txp sites in the server.

Check your PHP versions. If there are multiple (e.g. PHP 8.4, PHP 8.3 etc) then they may be consuming their own resources that count toward your allowance. If you can pare back to a single version, that may had a positive impact. Shared / allocated hosting like this is a pain because there’s almost no visibility for what’s using what resource, and the only way you can really know is by raising a support ticket to ask for some insight as to what’s using what.

Offline

Board footer

Powered by FluxBB