Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2012-03-27 12:17:45

THS
Member
Registered: 2012-02-02
Posts: 313
Website

MySQL crashes

My box is going down about every few hours due to traffic.  When we get about 100 concurrent users MySQL can no longer connect. Apache is fine. The box has 2 GB of RAM.  I have run far more intensive sites with less of a box without issue.  I have tried every possible setting in caching.  Are there any recommendations on what we can do?  The interim fix was to add more RAM.

Offline

#2 2012-03-27 21:26:38

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: MySQL crashes

remove embed code and replace it with this (dose not support porhub embed only)
http://forum.adultscriptpro.com/viewtop … 7025#p7025


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#3 2012-03-27 21:41:47

ful2fun.com
Member
From: Usa
Registered: 2011-09-16
Posts: 1,049
Website

Re: MySQL crashes

Then I cant use It As My Site Have 50% To 60% pornhub content..




ful2fun.com
livesexpirates.com


Pharmacy, wholesale prices - worldwide shipping.

Offline

#4 2012-03-28 05:53:28

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: MySQL crashes

You cannot have 100 concurent mysql users with that amount of traffic. You could try to remove a few queries that run every time someone connects to the site. The ban query from library/framework/bootstrap.php the users online query from index.php. Also remove the query that inserts in the video_history table from modules/video/components/view.php

Removing the embed code will free up data, however its not index data, nor is the data used to search when queries are executed.

You can setup mysql slow query log and see which queries are slow. Also from the mysql console run: show processlist when you have many users.


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#5 2012-03-28 06:08:39

ful2fun.com
Member
From: Usa
Registered: 2011-09-16
Posts: 1,049
Website

Re: MySQL crashes

I Have Seen Some Were Or Listen About it People Using Multiple MySQl For Single Site Like For Video One MYSQl And For Views For One MYSQL Like That It Is Interconnecting MYSQL. Will It BE A Good Option.


ful2fun.com
livesexpirates.com


Pharmacy, wholesale prices - worldwide shipping.

Offline

#6 2012-03-28 13:18:18

THS
Member
Registered: 2012-02-02
Posts: 313
Website

Re: MySQL crashes

symtab wrote:

You cannot have 100 concurent mysql users with that amount of traffic. You could try to remove a few queries that run every time someone connects to the site. The ban query from library/framework/bootstrap.php the users online query from index.php. Also remove the query that inserts in the video_history table from modules/video/components/view.php

Removing the embed code will free up data, however its not index data, nor is the data used to search when queries are executed.

You can setup mysql slow query log and see which queries are slow. Also from the mysql console run: show processlist when you have many users.


I do not have a bootstrap.php file in that location.  Could it be somewhere else or what query is it and I can search all the files?

Thanks!!

Offline

#7 2012-03-28 14:22:50

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: MySQL crashes

Ahh sorry...its libraries/framework/bootstrap.php


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#8 2012-03-28 18:09:49

THS
Member
Registered: 2012-02-02
Posts: 313
Website

Re: MySQL crashes

I should have clarified, I do not have a bootstrap.php file at all in that folder.  I did find it in the libraries folder though.  Will this cause an issue or is there something wrong with my setup?

Offline

#9 2012-03-28 18:16:47

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: MySQL crashes

Erm...do you have libraries/bootstrap.php?


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

#10 2012-03-28 21:10:19

THS
Member
Registered: 2012-02-02
Posts: 313
Website

Re: MySQL crashes

I do have the file -> /libraries/bootstrap.php : but not the -> /libraries/framework/bootstrap.php.  I assume you meant the first one in your posts and not that I needed the file in the framework folder.  If I do, I assume I just copy it.

Offline

#11 2012-03-29 07:07:20

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: MySQL crashes

Yes. I made mistake. The correct file is libraries/bootstrap.php


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

Board footer

Powered by FluxBB