Jump to content



Welcome to AstaHost - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
Photo
- - - - -

Memory Allotment To Php In A Shared Hosting Scenario

php memory shared hosting

2 replies to this topic

#1 Ahsaniqbal111

Ahsaniqbal111

    Super Member

  • Members
  • 821 posts
  • Gender:Male
  • Location:Pakistan
  • Interests:Medical education
    Anatomy
    Physiology
    Biochemistry
    Computer and Internet
    Google
    Facebook
  • myCENTs:1.91

Posted 02 June 2012 - 12:35 AM

I have had my website hosted with astahost for over two years now. The plan is a shared hosting plan, which I have no complaints about. But recently I ran into a problem that made my wonder the structure of shared hosting and allaction of resources to various hosted websites.

The exact problem is that I am getting this strange error in the admin section of my wordrpress based website when I try to view all the pages I have created.

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 4096 bytes) in /home/mananato/public_html/wp-includes/cache.php on line 505

I did some research about the issue and about the possible solutions for it. What I came to know is that I am getting this error because the memory allocated to my website is not enough any more and I need to increase it to a reasonable value. And to solve this error, I need to increase the memory allocated to php that my website uses. This thing has made me think about a lot of questions like:
  • How is memory allocated to different services in a shared hosting scenario?
  • Does a shared hosting scenario have a single or multiple installs of required tools like php, mysql?
  • Whether the installation of tools is single or multiple, how are the resources of the server distributed?
  • What are the effects of increasing the resources to a service on other services hosted on the same shared server?

And many more.......

So I decided to open a topic about it and place it in the "Internet and Websites" category so that it becomes a general issue that is not related to my website or astahost.

Any productive addition to the topic is appreciated.

#2 yordan

yordan

    Way Out Of Control - You need a life :)

  • [MODERATOR]
  • 4,677 posts

Posted 02 June 2012 - 02:29 PM

Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 4096 bytes) in /home/mananato/public_html/wp-includes/cache.php on line 505

If this is not an error in your script (33 megs is a rather high value) you should first open a ticket at Xisto in order to check that this is not a limitation of your hosting plan. If so, you will have to change your program, or upgrade your hosting plan memory limit.

#3 Ahsaniqbal111

Ahsaniqbal111

    Super Member

  • Members
  • 821 posts
  • Gender:Male
  • Location:Pakistan
  • Interests:Medical education
    Anatomy
    Physiology
    Biochemistry
    Computer and Internet
    Google
    Facebook
  • myCENTs:1.91

Posted 06 June 2012 - 11:23 AM

If this is not an error in your script (33 megs is a rather high value) you should first open a ticket at Xisto in order to check that this is not a limitation of your hosting plan. If so, you will have to change your program, or upgrade your hosting plan memory limit.

I have opened a ticket (about 5 days ago) but unfortunately I haven't got any response yet. By the way, do you have any suggesitons on why my website is requiring such high amount of memory. In my personal opinion, 32 Megs should be much more than enough for a website like that of mine, as there is no fancy stuff that could potentially use additional memory.

I guess it has something to do with wordpress. Maybe the wordpress platform requires such memory. I will try to do some research on the topic (If I find time for it) but some input from forum-fellows is definitely going to be helpful.



Reply to this topic



  



Also tagged with one or more of these keywords: php, memory, shared hosting

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users