Advertisement:

Author Topic: Osclass Memory Usage and Caching  (Read 12898 times)

Aficionado

  • Guest
Osclass Memory Usage and Caching
« on: May 07, 2015, 04:09:10 pm »
Hello.

Is there a way to view some stats about Osclass memory usage ?

I mean with Wordpress for example using

https://wordpress.org/plugins/tpc-memory-usage/

plugin we can have all stats we need (peak, current etc). Is something like that available for Osclass ?

Thanks

« Last Edit: May 13, 2015, 03:28:49 am by Aficionado »

Hussard (Madhouse)

  • Full Member
  • ***
  • Posts: 214
  • Outlaw web developer & padawan designer.
Re: Osclass Memory Usage
« Reply #1 on: May 11, 2015, 11:11:23 pm »
Well, I'm currently thinking and developing one like this !
(It will be available for free on the market ;) but I don't know exactly when though)

If you have any suggestions, I'll be glad to include it in my thoughts and plugin :)

Aficionado

  • Guest
Re: Osclass Memory Usage
« Reply #2 on: May 11, 2015, 11:26:55 pm »
Well, I'm currently thinking and developing one like this !
(It will be available for free on the market ;) but I don't know exactly when though)

If you have any suggestions, I'll be glad to include it in my thoughts and plugin :)

I have no more suggestions than to actually install and inspect that plugin. It covers everything.


dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: Osclass Memory Usage
« Reply #3 on: May 12, 2015, 01:18:20 am »
From my experience, and I tested many, particularly for the memory usage accuracy is a critical point that almost every tool has failed either on one or all test environments. Or they don't work at all. The only accuracy I got about right was under xampp+win (useless). Also many require root access, don't work if you are on a shared hosting -> not worth the effort of building a plugin or frontend I'm afraid, just too many variables. Even the one mentioned for wp has only negative reviews and like a 1 star rating. Best way would be if script internally could measure it's performance alone.

Aficionado

  • Guest
Re: Osclass Memory Usage
« Reply #4 on: May 12, 2015, 01:27:18 am »
From my experience, and I tested many, particularly for the memory usage accuracy is a critical point that almost every tool has failed either on one or all test environments. Or they don't work at all. The only accuracy I got about right was under xampp+win (useless). Also many require root access, don't work if you are on a shared hosting -> not worth the effort of building a plugin or frontend I'm afraid, just too many variables. Even the one mentioned for wp has only negative reviews and like a 1 star rating. Best way would be if script internally could measure it's performance alone.

How can you measure the accuracy of them ? How do you know they are either precise or not working right ?

Also no Wordpress plugin needs root access i think.

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: Osclass Memory Usage
« Reply #5 on: May 12, 2015, 01:31:08 am »
If you are on shared hosting you have some stats tool in control panel, right? And if you get like 16MB out of 128 MB usage, you know it's fake. If you are on dedi server, you have cli tools or again admin panel that report in real time, you compare with that numbers and see they are way too optimistic. There are tools that do not require root access, but they did not work right for all parameters (CPU usage or memory or both not working right). They depend on some modules or external tools, and if they are not found fields will be blank.

Aficionado

  • Guest
Re: Osclass Memory Usage
« Reply #6 on: May 12, 2015, 01:37:01 am »
If you are on shared hosting you have some stats tool in control panel, right? And if you get like 16MB out of 128 MB usage, you know it's fake.

Why it is fake ?

I see in my Cpanel now:

Physical Memory: 46.2 / 1024 MB

and many other stats about cpu, entry processes etc etc. Why all of them are fake ?

I don't think so.

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: Osclass Memory Usage
« Reply #7 on: May 12, 2015, 01:42:51 am »
Well, there is the trouble: if you are on shared hosting, that number may be isolated to php process alone. And if you are on vps/dedi what that number should report? Total system memory usage or just single php process usage? How that number can help you?

Again, I have yet to find a tool or a way that reports the same values as my hosting panel does (regardless of the type).

Aficionado

  • Guest
Re: Osclass Memory Usage
« Reply #8 on: May 12, 2015, 01:48:58 am »
Well, there is the trouble: if you are on shared hosting, that number may be isolated to php process alone. And if you are on vps/dedi what that number should report? Total system memory usage or just single php process usage? How that number can help you?

Again, I have yet to find a tool or a way that reports the same values as my hosting panel does (regardless of the type).

I am on shared hosting, semi-dedi as they call it (few customers per server and higher limits). Also i'm on Cloudlinux.

So what is the reason for Cpanel to display any statistics and also the complete Resource Usage option. None.

Maybe the numbers are not 100% accurate, but i haven't seen any post about what you say.

« Last Edit: May 12, 2015, 02:06:06 am by Aficionado »

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: Osclass Memory Usage
« Reply #9 on: May 12, 2015, 02:00:12 am »
I don't have experience with that kind of "semi-dedi", for me that is just a marketing sales pitch, You don't have a root access, right? Dedi word then does not have any place in that plan, period. It is still shared hosting by all definition. Thing is, they have an absolute accuracy of reporting usage stats through their WHM than any php script/tool has ever going to have access to.

Aficionado

  • Guest
Re: Osclass Memory Usage
« Reply #10 on: May 12, 2015, 02:08:35 am »
I don't have experience with that kind of "semi-dedi", for me that is just a marketing sales pitch, You don't have a root access, right? Dedi word then does not have any place in that plan, period. It is still shared hosting by all definition. Thing is, they have an absolute accuracy of reporting usage stats through their WHM than any php script/tool has ever going to have access to.

It is usual "name" for Hosting Plans. Semi-dedi. It is not my naming.

No, i have no root access. Anyway, do you have any idea about the actual Osclass memory usage ? What have you find ?

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: Osclass Memory Usage
« Reply #11 on: May 12, 2015, 02:16:18 am »
Nevermind hosting, anyway, no, I'm afraid don't have any meaningful numbers for you. For example, on vps/dedi I can tell you exactly how much is used by MySQL, Apache+PHP and other less related processes. But, I configure them to span across their limits, and I usually do not limit PHP or Osclass at all, so they span as much as they can (they take all). My memory (combined phy + swap) is always around 90% utilized, this is why I see this php reports as wrong. Here's one example (server is idle, but fully on stand-by):

Now, when you combine all the columns -> I get the ~ same values in my admin hosting panel. That is accuracy I am talking about.

SmaRTeY

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2519
Re: Osclass Memory Usage
« Reply #12 on: May 12, 2015, 03:15:16 am »
What is more interesting imo is to see/monitor how your performance and memory usage is holding over a period of time related to nr. of visitors. Meaning memory accuracy last, insights first and with that regard some kind of monitoring plugin can be useful. ::)

Aficionado

  • Guest
Re: Osclass Memory Usage
« Reply #13 on: May 12, 2015, 03:25:14 am »
What is more interesting imo is to see/monitor how your performance and memory usage is holding over a period of time related to nr. of visitors. Meaning memory accuracy last, insights first and with that regard some kind of monitoring plugin can be useful. ::)

As i understand it, every "instance" of Osclass (instance = each visitor if i'm right) uses some memory ?

So yes, what you say would even better, still not sure if it can be done ..


SmaRTeY

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2519
Re: Osclass Memory Usage
« Reply #14 on: May 12, 2015, 03:46:58 am »
Well, what dev101 mentioned is correct, it is almost impossible to get accurate memory consumption or processor consumption for a single application running on a server let alone on shared hosting where resources are shared and load balanced over other clients with their websites.

It should be possible to get insights on how your application is doing under different loads = nr. of requests per time frame vs. page load per request. That will show you over time an average based on which you can decide to scale up or down in hosting resources. In the end what you want is to serve and leave a good site impression so the accuratesse of memory / processor I think is less interesting though that ofcourse is what is needed to get performance for starters.