Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problemy ze strona
tumeks
post 5.07.2006, 12:15:53
Post #1





Grupa: Zarejestrowani
Postów: 123
Pomógł: 0
Dołączył: 10.11.2003
Skąd: Poznań

Ostrzeżenie: (0%)
-----


Witam! narazie testowałem z 3 hostingi az.pl, superhost.pl i nazwa.pl i żaden nie podołał utrzymac mojej strony, wszytkie serwery padały, a to wina ilośći zapytań. Idzie jakimś sposobem zmniejszyć ilośc zapytan aby nie obiąząc serwera, poneiważ narazie nei moge nigdzie trzymac strony, bo wszytko pada ;/, chyba że zna ktoś jakiś bardzo dobry hosting smile.gif.

Pozdrawiam
Tomasz
Go to the top of the page
+Quote Post
2 Stron V   1 2 >  
Start new topic
Odpowiedzi (1 - 19)
nasty
post 5.07.2006, 12:21:23
Post #2





Grupa: Zarejestrowani
Postów: 634
Pomógł: 14
Dołączył: 27.05.2006
Skąd: Berlin

Ostrzeżenie: (0%)
-----


Uzyj jakiegos rodzju cache.

- mmCache
- eAccelerator
- ACP
- albo PEAR :: Cache

pozdrawiam

Ten post edytował nasty_psycho 5.07.2006, 12:21:39
Go to the top of the page
+Quote Post
Cysiaczek
post 5.07.2006, 12:21:32
Post #3





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




Ale padały przez przekroczenie limitu transferu?


--------------------
To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness;
chaotic, confused, vulnerability, to inform yourself.
Think for yourself. Question authority.
Go to the top of the page
+Quote Post
tumeks
post 5.07.2006, 12:35:02
Post #4





Grupa: Zarejestrowani
Postów: 123
Pomógł: 0
Dołączył: 10.11.2003
Skąd: Poznań

Ostrzeżenie: (0%)
-----


Padały z powodu obiązenia procesora około 80-90%
Go to the top of the page
+Quote Post
php programmer
post 5.07.2006, 12:39:15
Post #5





Grupa: Zarejestrowani
Postów: 1 045
Pomógł: 5
Dołączył: 8.11.2004
Skąd: trójmiasto

Ostrzeżenie: (0%)
-----


To ja nie wiem co ty za zapytań używasz,
chyba powód leżey gdzie indziej, co
do serwera to polecam strefe
(szybki, niedrogi, dobrze skonfigurowany)
Cytat
Idzie jakimś sposobem zmniejszyć ilośc zapytan aby nie obiąząc serwera?

Być moze źle konstruujesz zapytanie,
np
  1. SELECT * FROM ...

zamiast brać tylko te pola co trzeba

Ten post edytował php programmer 5.07.2006, 12:44:02
Go to the top of the page
+Quote Post
tumeks
post 5.07.2006, 12:44:23
Post #6





Grupa: Zarejestrowani
Postów: 123
Pomógł: 0
Dołączył: 10.11.2003
Skąd: Poznań

Ostrzeżenie: (0%)
-----


NO to przytocze kilka zapytań:

  1. SELECT * FROM plecak AS p, sklep AS s WHERE (p.id_postaci = '".$postac_zal."' AND p.zalozone = 1) AND s.id = p.id_itemu


  1. SELECT lvl,exp FROM postacie WHERE id = '".$_GET['id']."'


  1. SELECT koszt FROM sklep WHERE id = '".$row10['id_itemu']."'
Go to the top of the page
+Quote Post
Cysiaczek
post 5.07.2006, 12:45:56
Post #7





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




UUUU stary. Takie obciążenia, to nigdzie ci nie pójdą - lepiej dokonaj poważnej rewizji kodu - nie tylko zapytań, ale i samych algorytmów.

Ten post edytował Cysiaczek 5.07.2006, 12:46:09


--------------------
To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness;
chaotic, confused, vulnerability, to inform yourself.
Think for yourself. Question authority.
Go to the top of the page
+Quote Post
tumeks
post 5.07.2006, 12:54:51
Post #8





Grupa: Zarejestrowani
Postów: 123
Pomógł: 0
Dołączył: 10.11.2003
Skąd: Poznań

Ostrzeżenie: (0%)
-----


Dzisiaj od godizny 11 cały kod poprawiałem. Co w tych zapytaniach jest źle?
Go to the top of the page
+Quote Post
Cysiaczek
post 5.07.2006, 12:57:39
Post #9





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




A możesz pokazać algorytmy obsługujace te zapytania?


--------------------
To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness;
chaotic, confused, vulnerability, to inform yourself.
Think for yourself. Question authority.
Go to the top of the page
+Quote Post
tumeks
post 5.07.2006, 13:03:20
Post #10





Grupa: Zarejestrowani
Postów: 123
Pomógł: 0
Dołączył: 10.11.2003
Skąd: Poznań

Ostrzeżenie: (0%)
-----


Prosze nie wklejac takich ilosci kodu!!! /~nospor/
Go to the top of the page
+Quote Post
Cysiaczek
post 5.07.2006, 13:06:40
Post #11





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




Ok. ostatnia rzecz. Czy jesteś wstanie pokazać microtime test dla tego skryptu? znajdziesz w manualu funkcję.


--------------------
To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness;
chaotic, confused, vulnerability, to inform yourself.
Think for yourself. Question authority.
Go to the top of the page
+Quote Post
tumeks
post 5.07.2006, 13:21:49
Post #12





Grupa: Zarejestrowani
Postów: 123
Pomógł: 0
Dołączył: 10.11.2003
Skąd: Poznań

Ostrzeżenie: (0%)
-----


Na moim serwerku domowym tak pokazuje:

Strona wygenerowana w 0.0069470405578613 sek.
Strona wygenerowana w 0.007188081741333 sek.
Strona wygenerowana w 0.0066461563110352 sek.
Strona wygenerowana w 0.007314920425415 sek.

Ile się wykonuje w internecie nie sprawdze niestety ponieważ moje konto zaostały zablokowane.
Go to the top of the page
+Quote Post
Cysiaczek
post 5.07.2006, 13:25:01
Post #13





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




Hmm... ciężko mi uwierzyć w takie microtimy... ale tak: Ile osób korzysta z twojego serwisu? To chyba jakaś gra, więc zakładam, że kilka lub kilkanaście osób naraz prawda?
Czy to nie to właśnie jest powodem wywalania strony przez adminów?


--------------------
To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness;
chaotic, confused, vulnerability, to inform yourself.
Think for yourself. Question authority.
Go to the top of the page
+Quote Post
tumeks
post 5.07.2006, 13:30:27
Post #14





Grupa: Zarejestrowani
Postów: 123
Pomógł: 0
Dołączył: 10.11.2003
Skąd: Poznań

Ostrzeżenie: (0%)
-----


Tak jest to gra internetowa garczy jest okolo 60 online w ciagu dnia wieczorem okolo 30-40.
Go to the top of the page
+Quote Post
Cysiaczek
post 5.07.2006, 13:33:07
Post #15





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




Eee? No stary. To nie jest na otwarte serwery. Chyba będziesz musiał zapłacić pare groszy za serwer. Ewentualnie spróbuj sponsoringu - to jeszcze lepsze rozwiuązanie.
p.s Czy Ty masz na myśli 60 osób bez przerwy?questionmark.gif O.o


--------------------
To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness;
chaotic, confused, vulnerability, to inform yourself.
Think for yourself. Question authority.
Go to the top of the page
+Quote Post
tumeks
post 5.07.2006, 13:35:39
Post #16





Grupa: Zarejestrowani
Postów: 123
Pomógł: 0
Dołączył: 10.11.2003
Skąd: Poznań

Ostrzeżenie: (0%)
-----


tak non stop 60 osob czasmi nawet ponad. smile.gif
Go to the top of the page
+Quote Post
Cysiaczek
post 5.07.2006, 13:36:53
Post #17





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




oj O.o to z każdego Cię wywalą - lepiej znajdz porządny wirtualny serwer za jakieś 800-1500 zł


--------------------
To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness;
chaotic, confused, vulnerability, to inform yourself.
Think for yourself. Question authority.
Go to the top of the page
+Quote Post
nasty
post 5.07.2006, 13:39:12
Post #18





Grupa: Zarejestrowani
Postów: 634
Pomógł: 14
Dołączył: 27.05.2006
Skąd: Berlin

Ostrzeżenie: (0%)
-----


A koszt pokryjesz z reklam, bedziesz kosil kase jak cholera. powodzenia !
Go to the top of the page
+Quote Post
tumeks
post 5.07.2006, 13:40:00
Post #19





Grupa: Zarejestrowani
Postów: 123
Pomógł: 0
Dołączył: 10.11.2003
Skąd: Poznań

Ostrzeżenie: (0%)
-----


Ciekawe skąd ja tyle pieniędzy wezme smile.gif, jak mnie nawet an dedykowany nie stac tongue.gifP
Go to the top of the page
+Quote Post
Cysiaczek
post 5.07.2006, 13:41:48
Post #20





Grupa: Moderatorzy
Postów: 4 465
Pomógł: 137
Dołączył: 26.03.2004
Skąd: Gorzów Wlkp.




nasty ma rację - reklama - jak masz tyle osób non-top na serwie, to utrzymasz.

Ten post edytował Cysiaczek 5.07.2006, 13:41:59


--------------------
To think for yourself you must question authority and
learn how to put yourself in a state of vulnerable, open-mindedness;
chaotic, confused, vulnerability, to inform yourself.
Think for yourself. Question authority.
Go to the top of the page
+Quote Post

2 Stron V   1 2 >
Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 19.07.2025 - 10:03