Results 1 to 3 of 3

Thread: Optimization problem and strange error

  1. #1
    Join Date
    Feb 2009

    Optimization problem and strange error


    I have 2 big problems with the CMS i'm doing (we developed our own CMS)

    1- We need to optimize it a lot because 1 of our client said that after about 30 min on Internet Explorer 8 the CMS is lagging and she must close the browser and reopen it.

    2- The same client send us a very strange erreur I never saw:

    Method not implemented
    get to /index.html not supported
    Additionaly, a 404 not found error was encountered while trying to use an ErrorDocument to handle the request.

    Our CMS use PHP, ajax, jquery, prototype.
    Can you please tell any optimization methode (ajax, jquery, prototype, method to use ans not to use, ) and any theories/solutions for both problem

    Thank you

  2. #2
    Join Date
    Mar 2010
    Optimization is a very big and complex task in IT system. Almost every tier or level can introduce the delay observed. Based on my working experience I can provide below but it is not complete by any means. Other veteran IT developers may want to add on.

    1. Assume your CMS do talk to a database, check the SQL statement. Which SQL statement take the longest to finish. Check which SQL statement although execute very fast is called very often by the application layer.

    2. Application layer sometimes depend on the programming language. For Java and PHP or others, garbage-collection can cause a noticeable delay if the application allocate memory in great abundance without resort to pooling/caching.

    3. Application layer design also matter. If a task need to go through multiple layers due to OO design, it can matters especially if that task is called very often throughout the whole application life-time.

    4. Client layer which has garbage-collection also have a part to play. This is especially so nowadays JavaScript has taken on an increasing prominent role in doing more computation and complex UI coding compared to 10 years ago.

    5. With AJAX catching on fire, developers may get carried away by making extensive use of this technique to provide a more "smoother" web browsing experience but at the back-end HTTP request is "bombarding" the server and the server will be very busy serving all those request.

    So essentially I group them into 3 layers. Client, Application, Database. Each layer need some investigation on it alone.

    Long long time ago, client are "dumb" I call it the thin client technology so I usually focus on application and database but now at the rate JavaScript evolve, it is also time to focus attention on the client layer. Not to mention some JavaScript files can run into thousands of lines leading to loading issues on the web browser at times.

    The thin-est client layer I could think of will be those Mainframe dumb terminals with the green characters on the black monitor. I cannot even use mouse to click on the screen

  3. #3
    Join Date
    Mar 2004
    The first step towards finding the cause would be to figure out if the slowing down is in the browser or the server. From what you've said, I'd be inclined to think it's the browser (especially since the browser is IE )

    Does this problem only occur when a user is logged in to the CMS as a user, or does this problem happen even if the user is just loading through page after page without being logged in? Is the problem always fixed by closing the browser, or does this slowing down sometimes persist even after the browser has been restarted?

    If the problem is always fixed by restarting the browser and it happens regardless of whether or not the user is logged in, then it's almost certainly a problem with the browser.

    If it is the browser, then the most likely culprit would be Javascript. When the slowing down starts to get bad, just close any tabs containing the site you're making without actually closing the browser. Just have another tab open on Google or something and then start trying to get your site to slow down in another tab. A lot has changed in browsers since I last did any amount of Javascript, but I would think that it is still true that all memory allocated for a site's Javascript should be purged when closing the tab. So if you can get your site to slow down and then speed back up by closing just the tab that it has been running in, and then opening a new tab and going back to your site in it then it'd go a long way to confirming that Javascript is the cause. Another way to check would be to go into Tools->Internet Options->and then untick the box for enabling Javascript. If your site stops slowing down after disabling Javascript then this will be a big clue.
    I'm thuper, thanks for asking.

    It lives! http://www.stephenphilbin.com/ (Well it kinda' does anyway).
    My portable colour selection tool

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.09419 seconds
  • Memory Usage 2,855KB
  • Queries Executed 15 (?)
More Information
Template Usage (32):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (3)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (73):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates