Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

website slow

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-31-2014, 09:09 PM
 
Chheang Leng Chheang Leng is offline
 

Advanced Member
  
Join Date: Jun 2014
Posts: 86
 

Question website slow

Hi x-cart team!

Now my site have slow I thinking then by directory var. In this directory have many directory run,run1,.......run10. How can I delete some directory run1,.....run10.? I think this directory not important .
__________________
X-Cart Business
Version: 5.1.8
Website: www.cdworlds.com
Reply With Quote
  #2  
Old 09-01-2014, 01:17 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: website slow

I believe run1, run2, and so-on directories were created manually (perhaps, for back-up reasons). You may delete them if you don't need them anymore.

But you should not delete the var/run directory that stores "compiled" X-Cart scripts. To refresh this directory please use the "Re-deploy the store" link in your back-end.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #3  
Old 09-01-2014, 06:03 PM
 
Chheang Leng Chheang Leng is offline
 

Advanced Member
  
Join Date: Jun 2014
Posts: 86
 

Default Re: website slow

Hi x-cart team!

site have slow i thinking have file in site make the slow web site. Are you know how to fix it or why it slow?
__________________
X-Cart Business
Version: 5.1.8
Website: www.cdworlds.com
Reply With Quote
  #4  
Old 09-01-2014, 09:17 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: website slow

Unfortunately, it is almost impossible to guess why this may happen. You need to find someone who could check the problem right on your server. Please contact our support staff (https://secure.x-cart.com/) if you want us to investigate the issue on your server.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
  #5  
Old 09-03-2014, 03:35 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: website slow

As a first step of investigation performance-related problems, please enable the Webmaster Kit module and enable profiler in its settings. You will be able to see MySQL-related bottlenecks on the problem pages then.

Please, let me know if it helps.
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
  #6  
Old 09-03-2014, 06:56 PM
 
Chheang Leng Chheang Leng is offline
 

Advanced Member
  
Join Date: Jun 2014
Posts: 86
 

Default Re: website slow

Hi x-cart team!

this is an report at file sql.log.2014.09.04

Quote:
[02:46:38.000000] Query #1: SELECT t0.moduleID AS moduleID1, t0.name AS name2, t0.author AS author3, t0.authorEmail AS authorEmail4, t0.enabled AS enabled5, t0.installed AS installed6, t0.yamlLoaded AS yamlLoaded7, t0.date AS date8, t0.rating AS rating9, t0.votes AS votes10, t0.downloads AS downloads11, t0.price AS price12, t0.currency AS currency13, t0.majorVersion AS majorVersion14, t0.minorVersion AS minorVersion15, t0.minorRequiredCoreVersion AS minorRequiredCoreVersion16, t0.revisionDate AS revisionDate17, t0.packSize AS packSize18, t0.xcnPlan AS xcnPlan19, t0.moduleName AS moduleName20, t0.authorName AS authorName21, t0.description AS description22, t0.iconURL AS iconURL23, t0.pageURL AS pageURL24, t0.authorPageURL AS authorPageURL25, t0.dependencies AS dependencies26, t0.tags AS tags27, t0.fromMarketplace AS fromMarketplace28, t0.isLanding AS isLanding29, t0.landingPosition AS landingPosition30, t0.isSystem AS isSystem31, t0.hasLicense AS hasLicense32, t0.editionState AS editionState33, t0.editions AS editions34 FROM xc_modules t0 WHERE t0.enabled = ?
Parameters:
true
Duration: 0.0005sec.
Doctrine UnitOfWork size: 365
Runtime id: 5585a5a267831563ff387eb03f19edb1
SAPI: cgi-fcgi; IP: 103.23.136.8
URI: /admin.php?target=module&moduleId=183
Method: GET
Backtrace:
file <X-Cart root>/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php : 717
file <X-Cart root>/lib/Doctrine/ORM/EntityRepository.php : 179
file <compiled classes repository>/classes/XLite/Model/Repo/Module.php : 738
file <compiled classes repository>/classes/XLite.php : 401
file <compiled classes repository>/classes/XLite/Controller/Admin/AAdmin.php : 148
file <compiled classes repository>/classes/XLite/Controller/Admin/Module.php : 55
file <compiled classes repository>/classes/XLite.php : 417
file <compiled classes repository>/classes/XLite.php : 442
file <X-Cart root>/admin.php : 37

[02:46:38.000000] Query #2: SELECT t0.enabled AS enabled1, t0.id AS id2 FROM xc_roles t0 INNER JOIN xc_profile_roles ON t0.id = xc_profile_roles.role_id WHERE xc_profile_roles.profile_id = ?
Parameters:
4
Duration: 0.0033sec.
Doctrine UnitOfWork size: 377
Runtime id: 5585a5a267831563ff387eb03f19edb1
SAPI: cgi-fcgi; IP: 103.23.136.8
URI: /admin.php?target=module&moduleId=183
Method: GET
Backtrace:
file <X-Cart root>/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php : 862
file <X-Cart root>/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php : 801
file <X-Cart root>/lib/Doctrine/ORM/UnitOfWork.php : 2584
file <X-Cart root>/lib/Doctrine/ORM/PersistentCollection.php : 218
file <X-Cart root>/lib/Doctrine/ORM/PersistentCollection.php : 524
method Doctrine\ORM\PersistentCollection::count()
file <compiled classes repository>/classes/XLite/Model/Profile.php : 777
file <compiled classes repository>/classes/XLite/Core/Auth.php : 665
file <compiled classes repository>/classes/XLite/Controller/Admin/AAdmin.php : 79
file <compiled classes repository>/classes/XLite/Controller/Admin/AAdmin.php : 57
file <compiled classes repository>/classes/XLite/Controller/AControllerAbstract.php : 458
file <compiled classes repository>/classes/XLite/Controller/Admin/AAdmin.php : 153
file <compiled classes repository>/classes/XLite/Controller/Admin/Module.php : 55
file <compiled classes repository>/classes/XLite.php : 417
file <compiled classes repository>/classes/XLite.php : 442
file <X-Cart root>/admin.php : 37

[02:46:38.000000] Query #3: SELECT t0.enabled AS enabled1, t0.id AS id2, t0.code AS code3, t0.section AS section4 FROM xc_permissions t0 INNER JOIN xc_role_permissions ON t0.id = xc_role_permissions.permission_id WHERE xc_role_permissions.role_id = ?
Parameters:
1
Duration: 0.0004sec.
Doctrine UnitOfWork size: 378
Runtime id: 5585a5a267831563ff387eb03f19edb1
SAPI: cgi-fcgi; IP: 103.23.136.8
URI: /admin.php?target=module&moduleId=183
Method: GET
Backtrace:
file <X-Cart root>/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php : 862
file <X-Cart root>/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php : 801
file <X-Cart root>/lib/Doctrine/ORM/UnitOfWork.php : 2584
file <X-Cart root>/lib/Doctrine/ORM/PersistentCollection.php : 218
file <X-Cart root>/lib/Doctrine/ORM/PersistentCollection.php : 568
file <compiled classes repository>/classes/XLite/Model/RoleAbstract.php : 107
file <compiled classes repository>/classes/XLite/Module/CDev/UserPermissions/Model/Role.php : 56
file <compiled classes repository>/classes/XLite/Model/Profile.php : 779
file <compiled classes repository>/classes/XLite/Core/Auth.php : 665
file <compiled classes repository>/classes/XLite/Controller/Admin/AAdmin.php : 79
file <compiled classes repository>/classes/XLite/Controller/Admin/AAdmin.php : 57
file <compiled classes repository>/classes/XLite/Controller/AControllerAbstract.php : 458
file <compiled classes repository>/classes/XLite/Controller/Admin/AAdmin.php : 153
file <compiled classes repository>/classes/XLite/Controller/Admin/Module.php : 55
file <compiled classes repository>/classes/XLite.php : 417
file <compiled classes repository>/classes/XLite.php : 442
file <X-Cart root>/admin.php : 37
__________________
X-Cart Business
Version: 5.1.8
Website: www.cdworlds.com
Reply With Quote
  #7  
Old 09-04-2014, 12:01 PM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: website slow

Hi Chheang!

This is not quite what you need.

1) Enable profiler in the Webmaster kit module.
2) Go to the slow page and you will see report at the bottom of this page. It will look like this: http://awesomescreenshot.com/0433fkgec1
3) Check reference points and if there is any red records (you note them), please let me know about them. Alternatively, you can make the snapshot of entire page (services like awesomescreenshot allows to do that) and send it to me.

Tony.
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
  #8  
Old 09-04-2014, 08:26 PM
 
Chheang Leng Chheang Leng is offline
 

Advanced Member
  
Join Date: Jun 2014
Posts: 86
 

Default Re: website slow

Hi x-cart team!

I thinking it slow by directory run and some directory run(run,...run14) not important . In the directory var have many directory run (run, run1,.......run14). At the directory run have size 9MB.
this is an report queries log
__________________
X-Cart Business
Version: 5.1.8
Website: www.cdworlds.com
Reply With Quote
  #9  
Old 09-05-2014, 04:09 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: website slow

Well, benchmark shows that working time is 1.7 sec, which is not very good, but not that bad either.

I feel, you might want to change hosting account in order to allow X-Cart 5 work smoothly, because at this point X-Cart 5 seems to not have dramatical problem.
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 03:47 PM.

   

 
X-Cart forums © 2001-2020