NopCom v2.5 mobile device support kills performance [SLOW]

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 năm cách đây
Not sure if anyone is aware of this issue or if this issue is only affecting a small number of deployments. After I noticed first time visitors were waiting up to 20 secs for the entire home page to load this issue went straight to the top of my things to do. After exhaustive analysis / configuration of the performance of my present VPS server I incorrectly concluded it must be the connectivity to the VPS is oversubscribed so have created a beta deployment on another VPS provider to find little difference in performance. After I found this post by shanexh which described my performance symptoms I deactivated "mobile device support" on both LIVE and BETA sites. They both now load in 800ms - 1.49 secs on average. Phew - panic over! Has anyone else experience this? What is it about Mobile Device support that could cause such a serious performance hit?

shanexh wrote:
Despite the "waterfall" performance chart seemingly indicating the images are the culprit I found that once I disabled "mobile device support" in the admin panel that performance vastly improved and load times were consistent on refresh etc. Oddly enough I had the mobile devices supported on 2.4 without any loss of performance on the primary site.


From original post: https://www.nopcommerce.com/boards/t/16267/speed-concern-25.aspx
12 năm cách đây
I presume the issue is with 51degrees assembly (version 2.1.2.11) which sends information about current device to http://devices.51degrees.mobi/new.ashx with EACH request. This way 51degrees team gathers information about new mobile devices.

The upcoming version of nopCommerce 2.60 uses 51degrees assembly 2.1.4.5 which does not open http://devices.51degrees.mobi/new.ashx with each request. It opens it only once (per customer). It's better but it's also bad. 51degrees doesn't  have a way to disable it. I've asked developer to make this option configurable, but they do not agree to do it.

Of course, I can download its source code (51degrees is an open-source project. that's great) and manually disable this option but it'll be a bit annoying to do it with each 51degrees release. So it would be great of each us will go to 51degrees forums and ask developers to add such option into further releases
12 năm cách đây
a.m. wrote:
I presume the issue is with 51degrees assembly (version 2.1.2.11) which sends information about current device to http://devices.51degrees.mobi/new.ashx with EACH request. This way 51degrees team gathers information about new mobile devices.


Wow - of course it would struggle. Google are one of the few companies with the infrastructure to cope with this sort of potential demand. Surely a better solution would be a Web service that could time out silently and not affect the end user experience. I'm thinking of removing my GeoTrust SSL site seal for the same reason. On occasion it holds up the downland of each page as it is in the footer.

a.m. wrote:
The upcoming version of nopCommerce 2.60 uses 51degrees assembly 2.1.4.5 which does not open http://devices.51degrees.mobi/new.ashx with each request. It opens it only once (per customer). It's better but it's also bad. 51degrees doesn't  have a way to disable it. I've asked developer to make this option configurable, but they do not agree to do it.


Better, but its on the first slow request when you loose your customer so I agree it's not good enough.

a.m. wrote:
Of course, I can download its source code (51degrees is an open-source project. that's great) and manually disable this option but it'll be a bit annoying to do it with each 51degrees release.


I can't activate mobile device support knowing this option is still active. If you pointed me in the right direction I would happily edit each release to disable this feature myself. This feature may also cause those of us in the EU some hassle regarding this new cookie tracking law.

a.m. wrote:
So it would be great of each us will go to 51degrees forums and ask developers to add such option into further releases


Will do!
12 năm cách đây
[email protected] wrote:
I can't activate mobile device support knowing this option is still active. If you pointed me in the right direction I would happily edit each release to disable this feature myself

1. Download 51degrees source code
2. Open the solution and find \Mobile\Detection\NewDevice.cs file (FiftyOne.Foundation 4 proejct)
3. Add "return" in the beginning of Start method (before try-catch block)
12 năm cách đây
a.m. wrote:
1. Download 51degrees source code
2. Open the solution and find \Mobile\Detection\NewDevice.cs file (FiftyOne.Foundation 4 proejct)
3. Add "return" in the beginning of Start method (before try-catch block)
Great, I'll give this a go!

I have posted a request to disable the tracking here: http://51degrees.mobi/Support/Forum/tabid/65/forumid/9/threadid/1797/scope/posts/Default.aspx

Thanks for all your help a.m.
12 năm cách đây
[email protected] wrote:
I have posted a request to disable the tracking here: http://51degrees.mobi/Support/Forum/tabid/65/forumid/9/threadid/1797/scope/posts/Default.aspx

Joined
11 năm cách đây
Great news!

"We expect to release to beta an enhanced version of Foundation next week which will consolidate multiple devices and further optimise network usage. This will include the option for nopCommerce (and any other CMS vendor) to include a User Interface control to allow the sending of usage information to be turned off/on by the end user."

Source: http://51degrees.mobi/Support/Forum/tabid/65/forumid/2/postid/1804/scope/posts/Default.aspx#1804

Thanks a.m. I followed your instructions which appear to have resolved the issue so I can support mobile devices while we wait for the 51 degrees mobi release as promised.
11 năm cách đây
Hi,

I posted a bug "https://www.nopcommerce.com/boards/t/17198/takes-2-minutes-to-load-if-the-application-is-not-accessed-for-long-time.aspx"

Does this also because of Mobile Devise Support?

Please help guide me how do I disable mobile device support.

Thanks,
Jeevan
11 năm cách đây
jeevankumarkr wrote:
Does this also because of Mobile Devise Support?
Hi, no I don't think so. Mobile device support is disabled by default.

This setting can be found in the Admin Panel.

Configuration-->Settings-->General And Miscellaneous Settings-->Mobile devices supported: Check box

Your problem is related to the Worker Process being recycled to save RAM on the server. As there is no traffic on your website IIS decides to shut down the worker process. If you have access to the IIS server admin you can change the Idle Time-Out (mins) setting for the Application Pool Identity your website is running under. If you do not have access, you may be able to set this in the web.config.
11 năm cách đây
[email protected] wrote:


Your problem is related to the Worker Process being recycled to save RAM on the server. As there is no traffic on your website IIS decides to shut down the worker process. If you have access to the IIS server admin you can change the Idle Time-Out (mins) setting for the Application Pool Identity your website is running under. If you do not have access, you may be able to set this in the web.config.


Leo, thanks much for your immediate response. This is very helpful, it took pressure off.

You are best.

Thanks,
Jeevan
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.