I have not much knowledge. So please if you need any information write down the process to get the infromation you want.
I purchased a dedicated server - HP ProLiant DL120 G7/Intel Quad-Core Xeon E3-1230, and divided into two VPS. 1st VPS configuration is 8GB RAM, 500GB HDD and hosting a wordpress blog. 2nd VPS is 24GB RAM and 2.5TB HDD and hosting an image hosting site.
Users are downloading image files via some software and opening image files through browser. Users are posting image sets on forum.
This is my my.cnf file
Problem part.
It works fine 2-4 days. In working days there are 280 Task maximum when I use top command and memory usage approx 1.5-1.6 GB. But when problem arise tasks goes above to 350-430 and at that time memory usage 3.2-4.5 GB and at everything collapse. Visitors can't able to open the site and see the image.
Maximum user online on the site approx 150 maximum as per GA (Google Analytic)
I think there is different kind of configuration for image hosting site and file hosting site.
So please need help to optimize.
NOTE : If you need any other info please let me know so that I can provide.
I purchased a dedicated server - HP ProLiant DL120 G7/Intel Quad-Core Xeon E3-1230, and divided into two VPS. 1st VPS configuration is 8GB RAM, 500GB HDD and hosting a wordpress blog. 2nd VPS is 24GB RAM and 2.5TB HDD and hosting an image hosting site.
Users are downloading image files via some software and opening image files through browser. Users are posting image sets on forum.
This is my my.cnf file
Code:
[mysqld]
skip-name-resolve
sql-mode = NO_ENGINE_SUBSTITUTION
#event-scheduler = 1
## Cache
thread-cache-size = 16
table-open-cache = 4096
table-definition-cache = 2048
query-cache-size = 256M
query-cache-limit = 512M
## Per-thread Buffers
sort-buffer-size = 8M
read-buffer-size = 1M
read-rnd-buffer-size = 8M
join-buffer-size = 1M
## Temp Tables
tmp-table-size = 32M
max-heap-table-size = 64M
## Networking
back-log = 100
max-connections = 400
max_user_connections = 1000
max-connect-errors = 10000
max-allowed-packet = 32M
interactive-timeout = 5
wait-timeout = 5
### Storage Engines
#default-storage-engine = InnoDB
innodb = FORCE
## MyISAM
key-buffer-size = 64M
myisam-sort-buffer-size = 128M
## InnoDB
#innodb-buffer-pool-size = 128M
#innodb-log-file-size = 100M
#innodb-log-buffer-size = 8M
#innodb-file-per-table = 1
#innodb-open-files = 300
innodb_buffer_pool_size = 512M
innodb_additional_mem_pool_size = 64M
innodb_thread_concurrency = 8
innodb_flush_log_at_trx_commit = 0
innodb_log_buffer_size = 8M
[mysql]
no-auto-rehash
It works fine 2-4 days. In working days there are 280 Task maximum when I use top command and memory usage approx 1.5-1.6 GB. But when problem arise tasks goes above to 350-430 and at that time memory usage 3.2-4.5 GB and at everything collapse. Visitors can't able to open the site and see the image.
Maximum user online on the site approx 150 maximum as per GA (Google Analytic)
I think there is different kind of configuration for image hosting site and file hosting site.
So please need help to optimize.
NOTE : If you need any other info please let me know so that I can provide.