Home › Forum › Problemi Vari con WP › lentezza di accesso al db – wp 2.8.4. versione it
-
AutorePost
-
-
13 Agosto 2009 alle 20:13 #11305mpandaPartecipante
Salve a tutti,
è da tempo che noto una lentezza nella operatività di wp cosଠho scritto al mio hosting linux (townbridgecom.com, supporta php e mysql) e dopo alcune verifiche mi hanno risposto cosà¬:
“We could only find that the domain is taking too much time to access the wordpress database, which is causing the delay in access.
Kindly contact the worpress support and check whether any settings have to be made to make the database interaction faster for wordpress. “
Ho pertanto deciso di rivolgermi al forum ufficiale con l’augurio di ricevere qualche suggerimento efficace.
Il tema è Vanilla e il plugin di riferimento è e-commerce (v3.7) poiché lo scopo del blog è un e-shop.
Se occorressero altre info di configurazione sono a disposizione.
Grazie
-
13 Agosto 2009 alle 21:22 #67681wollyAmministratore del forum
Dipende da molti fattori, il numero di richieste che hai, il plugin di ecommerce che sarà esoso di richieste, le configaruzioni dei server, il database se è sulla stessa macchina o su altra macchina,il tipo di connessione al database, la banda che hai a disposizione, la configurazione hardware e software della macchina su cui risiedi.
Per farti un esenpio wordpress.con ha più di 6 milioni di accessi giornalieri e circa 20 milioni di pagine viste e gira su circa 120 server tra mysql e server normali ed è veloce, gestione della cache di mysql e di php a livello server etc.etc.
Se il tuo hosting comincia a starti stretto è ora di passare a qualcosa di superiore.
-
13 Agosto 2009 alle 22:08 #67683mpandaPartecipante
Innazitutto ti ringrazio della risposta immediata.
Le uniche info in mio possesso sono che il blog è in fase di costruzione quindi gli accessi sono limitatissimi al mio lavoro di caricamento e il db è di pochi kb….la mia config hardware locale è obsoleta ma credo dignitosa …athlon 3000+ 1gb ramddr video ati 9250 agp8x…software xp pro sp2…insomma ci faccio un po di tutto di solito senza particolari sofferenze.
La mia connettività è fastweb fibra…perciò complessivamente non sono messo malissimo.
Tutte le altre giuste considerazioni che hai puntualizzato non sono in mio diretto controllo quindi è difficile essere certo…diciamo che lato hosting mi possono raccontare quello vogliono.
Proviamo a restringere il cerchio se possibile…ammettiamo il worse case ovvero che l’hosting sia un solo server vps in sharing tra tutti gli utenti perciò il db è ‘residente’….a tuo parere quali settaggi generali del server possono influenzare la performance di wp e che in qualche modo io potrei ragionevolmente richiedere di ottimizzare e perlomeno di verificare?
Dopodiché se nulla cambiasse allora potrei valutare senza rimpianti una migrazione verso altro hosting.
-
13 Agosto 2009 alle 22:25 #67685wollyAmministratore del forum
Latua macchina locale non ha nessuna importanza.
I settings dafare sono moltisismi ma se non hai accessoroot alla macchina e non sei un sistemista la vedo molto difficile.
Non è cosa che si scrive in poche righe.
Dovresti cominciare a vedere quanta memoria hai a disposizione e in base a quella ottimizzare apache o il webserver che utilizzi.
Poi dovresti attivare le cache di php e di mysql.
Poi dovresti vedere come è connesso mysql.
Etc.Etc.etc.
-
13 Agosto 2009 alle 22:26 #67686wollyAmministratore del forum
P.s.: questo non ha nulla a che vedere con wordpress, dovresti chiedere sui forum specializzati per apache, linux e mysql.
-
19 Agosto 2009 alle 18:54 #67788mpandaPartecipante
Wolly approfitto del tuo riferimento al db per chiedere un parere che forse potrebbe interessare anche ad altri utenti.
Come è possibile far lavorare wp su più database?
io ho appena cambiato hosting passando a justhost e quindi riparto da zero con l’installazione e sono libero di sperimentare ogni possibile config.
Sarebbe interessante a mio avviso, nell’ambito ad esempio dell’e-commerce, creare vari subdomini per le varie categorie di prodotti e semmai dedicare un db per ognuna in una visione server/client per wp verso i contenuti.
E’ una castroneria oppure potrebbe aver senso?
-
19 Agosto 2009 alle 22:15 #67791degraPartecipante
WP si appoggia ad un unico DB in lettura e scrittura. Sarebbe complicato e implicherebbe la modifica di file del core che verrebbero riscritti ad ogni aggiornamento. E non penso cambierebbe qualcosa in termini di prestazioni che, comunque, sono sempre migliori rispetto a quelle di un server che debba, magari, andare a caricare immagini caricate su altri hosting. Cioè, se il sito è lento, non è quasi mai colpa delle query al DB, a meno che la macchina su cui gira non sia poco potente.
Se parli di sottodomini, allora puoi separare varie installazioni su vari DB, e collegarli solo a livello grafico, in modo che l’utente non si accorga di passare da un sito all’altro.
-
20 Agosto 2009 alle 12:07 #67799mpandaPartecipante
Sଠhai colto perfettamente questa mia ‘insana’ visione. (il caldo d’agosto a milano in questi giorni si fa sentire….)
Pensavo appunto a subdomini ed in ognuno installare wp dedicato solo a un genere di prodotto.
In questo modo (forse) si potrebbero ‘contingentare’ le centinaia di chiamate del plugin e-commerce e forse snellire un po’ la lentezza del tutto.
Inciso.
Sto ‘dannato’ plugin dicono sia il migliore ‘free’ in circolazione ma rallenta pesantemente la performance di wp. (peraltro non ha neanche supporto…il loro forum senza moderatori è una bolgia dantesca di ‘not solved’ in cui centinaia di utenti si azzuffano l’un con l’altro per ottenere soluzioni ai bugs invano)
Fine inciso.
A tuo parere potrebbe dare miglioramenti di velocità la config ipotizzata o non cambierebbe nulla?
-
20 Agosto 2009 alle 14:07 #67801wollyAmministratore del forum
non ti risolve nulla anzi ti peggiora la situazione. La soluzione è quella di prenderti un server privato dove far girare il tuo wordpress eil tuo database e se dovesse diventare molto trafficato ti fai due server uno per il wordpress ed uno per il database ma in ogni caso come già ti ho detto non è questo il posto per discutere di configurazione di server.
-
20 Agosto 2009 alle 20:35 #67802mpandaPartecipante
E’ vero Wolly, lo avevi già detto. ma non lo avevo inteso come un off topic tale da chiudere lଠil discorso, anche perché le post libraries dei forum tecnici offrono riferimenti di knowledgebase per tutti gli utenti, passati, presenti e futuri, tali da dover essere incoraggiati a mio avviso per accrescere il valore stesso del forum.
Visto che sei stato cosଠgentile e tempestivo nel rispondere all’apertura del topic posso chiederti in quale sezione del forum consigli di aprire una discussione su database e backup di wp?
Grazie anticipate
-
20 Agosto 2009 alle 21:06 #67804degraPartecipante
non è questione di sezione del forum: server e DB non sono argomento del forum, come il CSS e l’HTML. Un discorso generico ci sta anche, ma la configurazione di un server dedicato va al di là del supporto a wordpress.
Per parlare di DB e backup, dipende: se è per segnalare un problema, qui va bene, se è per chiedere informazioni, chiarimenti, magari è meglio in “amministrazione WP”. Comunque per quanto riguarda il backup c’è una sezione intera della wiki che ne tratta approfonditamente.
-
20 Agosto 2009 alle 21:41 #67805wollyAmministratore del forum
come ti ho già spiegato quello che tu chiedi è assistenza molto avanzata sulla configurazione dei server, argomento sul quale sarà molto difficile trovare assistenza qui dove parliamo di wordpress mentre la troverai senza alcun dubbio sui forum di assistenza di apache e mysql.
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.