We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24068
    • 4 Posts
    hello,

    first of all: great great great, i love modx.

    about session_write_close:

    i just installed modx revo beta3 localy (environment: winXP, apache2, php 5.2.6, pdo, pdo_mysql, mysql 5.0.67, firefox 3.5 /w tracemokey enabled and no firebug enxtension) and the manager is slow. very slow. unuseable slow.

    just a guess: it could be the "not closing the session as early as possible via session_write_close" thing, that blocks a request serverside when a specific session is allready open by a previous request.

    i know this session blocking behaviour only from my local installments of wamps, not having a clue how to disable that. so i started using session_write_close() in my scripts, whenever i expect multiple requests from one client for one browserpage (yes, ajax)

    could this be the reason for the slow manager-interface?
      • 22303 MODX Staff
      • 10,725 Posts
      First, do you have any references to information about this session_write_close issue? I’d like to better understand it.

      That said, do you have HttpFox or another extension that you could monitor the requests with and see what is taking so long? We have addressed several issues recently in SVN that were causing slow performance issues on some configurations and I’d like to confirm/deny if these are the same issues you are experiencing.
        • 24068
        • 4 Posts
        Quote from: OpenGeek

        First, do you have any references to information about this session_write_close issue? I’d like to better understand it.

        Its personal coding experience and this php-documentation-entry on http://php.net/session_write_close:

        Session data is usually stored after your script terminated without the need to call session_write_close(), but as session data is locked to prevent concurrent writes only one script may operate on a session at any time. When using framesets together with sessions you will experience the frames loading one by one due to this locking. You can reduce the time needed to load all the frames by ending the session as soon as all changes to session variables are done.

        Simply replace "frame" with "ajax-request" and you’ve the problematic beavior i meant.

        Quote from: OpenGeek at Oct 11, 2009, 10:22 AM

        That said, do you have HttpFox or another extension that you could monitor the requests with and see what is taking so long? We have addressed several issues recently in SVN that were causing slow performance issues on some configurations and I’d like to confirm/deny if these are the same issues you are experiencing.

        I’ll install that HttpFox and report the results back here asap.

          • 24068
          • 4 Posts
          The results of HttpFox:

          00:00:04.913	0.404	695	485	GET	200	image/png	http://localhost:8087/modxrevo/manager/templates/default/images/restyle/i/bg-drop-last.png
          00:00:06.821	3.514	646	265	GET	200	text/html	http://localhost:8087/modxrevo/manager/?a=1&
          00:00:10.535	8.469	633	(143116)	GET	(Cache)	text/css	http://localhost:8087/modxrevo/manager/assets/ext3/resources/css/ext-all.css
          00:00:10.658	0.439	644	(41520)	GET	(Cache)	text/css	http://localhost:8087/modxrevo/manager/assets/ext3/resources/css/xtheme-gray-extend.css
          00:00:10.789	0.429	627	(299)	GET	(Cache)	text/css	http://localhost:8087/modxrevo/manager/templates/default/css/index.css
          00:00:10.910	1.630	616	(32145)	GET	(Cache)	application/javascript	http://localhost:8087/modxrevo/manager/assets/ext3/adapter/ext/ext-base.js
          00:00:11.219	7.060	657	(1206)	GET	(Cache)	text/css	http://localhost:8087/modxrevo/manager/templates/default/css/structure.css
          00:00:11.353	7.056	660	(24)	GET	(Cache)	text/css	http://localhost:8087/modxrevo/manager/templates/default/css/tables/index.css
          00:00:11.477	6.941	655	(1602)	GET	(Cache)	text/css	http://localhost:8087/modxrevo/manager/templates/default/css/browser.css
          00:00:11.605	6.817	657	(221)	GET	(Cache)	text/css	http://localhost:8087/modxrevo/manager/templates/default/css/workspace.css
          00:00:11.726	6.702	652	(748)	GET	(Cache)	text/css	http://localhost:8087/modxrevo/manager/templates/default/css/text.css
          00:00:11.848	6.586	653	(5899)	GET	(Cache)	text/css	http://localhost:8087/modxrevo/manager/templates/default/css/icons.css
          00:00:11.972	6.466	654	(3006)	GET	(Cache)	text/css	http://localhost:8087/modxrevo/manager/templates/default/css/modext.css
          00:00:12.099	6.466	660	(1049)	GET	(Cache)	text/css	http://localhost:8087/modxrevo/manager/templates/default/css/modext/index.css
          00:00:12.222	6.606	659	(2580)	GET	(Cache)	text/css	http://localhost:8087/modxrevo/manager/templates/default/css/style/index.css
          00:00:12.345	6.618	660	(294)	GET	(Cache)	text/css	http://localhost:8087/modxrevo/manager/templates/default/css/modext/patch.css
          00:00:12.749	8.354	603	590041	GET	200	application/javascript	http://localhost:8087/modxrevo/manager/assets/ext3/ext-all.js
          00:00:12.874	6.170	607	(6481)	GET	(Cache)	application/javascript	http://localhost:8087/modxrevo/manager/assets/modext/core/modx.js
          00:00:13.003	8.239	652	39029	GET	200	application/x-javascript	http://localhost:8087/modxrevo/connectors/lang.js.php?topic=topmenu,file,resource,welcome,configcheck&action=1
          00:00:13.144	8.387	618	4201	GET	200	text/html	http://localhost:8087/modxrevo/connectors/layout/modx.config.js.php?action=1
          00:00:13.283	5.776	620	(3305)	GET	(Cache)	application/javascript	http://localhost:8087/modxrevo/manager/assets/modext/core/modx.localization.js
          00:00:13.555	5.511	612	(13609)	GET	(Cache)	application/javascript	http://localhost:8087/modxrevo/manager/assets/modext/util/utilities.js
          00:00:13.693	5.985	615	(2196)	GET	(Cache)	application/javascript	http://localhost:8087/modxrevo/manager/assets/modext/util/switchbutton.js
          00:00:13.834	5.851	620	(2225)	GET	(Cache)	application/javascript	http://localhost:8087/modxrevo/manager/assets/modext/core/modx.form.handler.js
          00:00:13.984	5.708	617	(1994)	GET	(Cache)	application/javascript	http://localhost:8087/modxrevo/manager/assets/modext/core/modx.component.js
          00:00:14.123	5.577	621	(11195)	GET	(Cache)	application/javascript	http://localhost:8087/modxrevo/manager/assets/modext/core/modx.actionbuttons.js
          00:00:14.365	5.342	619	(1765)	GET	(Cache)	application/javascript	http://localhost:8087/modxrevo/manager/assets/modext/widgets/core/modx.msg.js
          00:00:14.518	5.196	621	(9779)	GET	(Cache)	application/javascript	http://localhost:8087/modxrevo/manager/assets/modext/widgets/core/modx.panel.js
          00:00:14.654	5.067	620	(785)	GET	(Cache)	application/javascript	http://localhost:8087/modxrevo/manager/assets/modext/widgets/core/modx.tabs.js
          00:00:14.794	4.935	622	(4598)	GET	(Cache)	application/javascript	http://localhost:8087/modxrevo/manager/assets/modext/widgets/core/modx.window.js
          00:00:14.924	4.811	620	(14133)	GET	(Cache)	application/javascript	http://localhost:8087/modxrevo/manager/assets/modext/widgets/core/modx.tree.js
          00:00:15.180	4.562	621	(21285)	GET	(Cache)	application/javascript	http://localhost:8087/modxrevo/manager/assets/modext/widgets/core/modx.combo.js
          00:00:15.320	4.431	620	(26583)	GET	(Cache)	application/javascript	http://localhost:8087/modxrevo/manager/assets/modext/widgets/core/modx.grid.js
          00:00:15.469	4.289	626	(8452)	GET	(Cache)	application/javascript	http://localhost:8087/modxrevo/manager/assets/modext/widgets/core/modx.grid.local.js
          00:00:15.616	4.148	623	(3685)	GET	(Cache)	application/javascript	http://localhost:8087/modxrevo/manager/assets/modext/widgets/core/modx.console.js
          00:00:15.753	4.018	622	(6371)	GET	(Cache)	application/javascript	http://localhost:8087/modxrevo/manager/assets/modext/widgets/core/modx.portal.js
          00:00:16.017	3.761	619	(8556)	GET	(Cache)	application/javascript	http://localhost:8087/modxrevo/manager/assets/modext/widgets/modx.treedrop.js
          00:00:16.159	3.625	613	(22775)	GET	(Cache)	application/javascript	http://localhost:8087/modxrevo/manager/assets/modext/widgets/windows.js
          00:00:16.317	3.474	633	(16300)	GET	(Cache)	application/javascript	http://localhost:8087/modxrevo/manager/assets/modext/widgets/resource/modx.tree.resource.js
          00:00:16.463	3.349	631	(7983)	GET	(Cache)	application/javascript	http://localhost:8087/modxrevo/manager/assets/modext/widgets/element/modx.tree.element.js
          00:00:16.609	3.210	632	(7832)	GET	(Cache)	application/javascript	http://localhost:8087/modxrevo/manager/assets/modext/widgets/system/modx.tree.directory.js
          00:00:16.883	2.942	639	(10554)	GET	(Cache)	application/javascript	http://localhost:8087/modxrevo/manager/assets/modext/util/filetree/js/Ext.ux.form.BrowseButton.js
          00:00:17.026	2.807	634	(15461)	GET	(Cache)	application/javascript	http://localhost:8087/modxrevo/manager/assets/modext/util/filetree/js/Ext.ux.FileUploader.js
          00:00:17.146	2.693	633	(18582)	GET	(Cache)	application/javascript	http://localhost:8087/modxrevo/manager/assets/modext/util/filetree/js/Ext.ux.UploadPanel.js
          00:00:17.266	2.580	637	(6793)	GET	(Cache)	text/css	http://localhost:8087/modxrevo/manager/assets/modext/util/filetree/css/icons.css
          00:00:17.385	2.468	640	(4023)	GET	(Cache)	text/css	http://localhost:8087/modxrevo/manager/assets/modext/util/filetree/css/filetype.css
          00:00:17.541	2.317	640	(2175)	GET	(Cache)	text/css	http://localhost:8087/modxrevo/manager/assets/modext/util/filetree/css/filetree.css
          00:00:17.663	2.201	614	(5543)	GET	(Cache)	application/javascript	http://localhost:8087/modxrevo/manager/assets/modext/core/modx.layout.js
          00:00:17.783	2.091	624	(2864)	GET	(Cache)	application/javascript	http://localhost:8087/modxrevo/manager/assets/modext/widgets/modx.panel.welcome.js
          00:00:17.911	1.969	645	(1998)	GET	(Cache)	application/javascript	http://localhost:8087/modxrevo/manager/assets/modext/widgets/security/modx.grid.user.recent.resource.js
          00:00:18.031	1.860	614	(603)	GET	(Cache)	application/javascript	http://localhost:8087/modxrevo/manager/assets/modext/sections/welcome.js
          00:00:18.410	1.485	666	(935)	GET	(Cache)	text/css	http://localhost:8087/modxrevo/manager/templates/default/css/tables/next.css
          00:00:18.567	1.333	672	(2090)	GET	(Cache)	text/css	http://localhost:8087/modxrevo/manager/templates/default/css/modext/extensions.css
          00:00:18.698	1.207	667	(1514)	GET	(Cache)	text/css	http://localhost:8087/modxrevo/manager/templates/default/css/modext/style.css
          00:00:18.829	1.084	666	(2577)	GET	(Cache)	text/css	http://localhost:8087/modxrevo/manager/templates/default/css/style/navbar.css
          00:00:18.953	1.084	669	(2673)	GET	(Cache)	text/css	http://localhost:8087/modxrevo/manager/templates/default/css/style/accordion.css
          00:00:23.766	17.816	879	1230	POST	200	text/html	http://localhost:8087/modxrevo/connectors/security/user.php
          00:00:24.528	16.407	841	1861	POST	200	text/html	http://localhost:8087/modxrevo/connectors/resource/index.php
          00:00:24.701	15.521	873	2616	POST	200	text/html	http://localhost:8087/modxrevo/connectors/resource/index.php?action=getNodes&id=root
          00:00:24.915	16.918	872	2878	POST	200	text/html	http://localhost:8087/modxrevo/connectors/element/index.php?action=getNodes&id=root
          00:00:25.101	16.994	907	3309	POST	200	text/html	http://localhost:8087/modxrevo/connectors/browser/directory.php?action=getList&id=root
          00:00:40.547	7.973	888	3571	POST	200	text/html	http://localhost:8087/modxrevo/connectors/resource/index.php?action=getNodes&id=web_0&type=context
          00:00:42.510	6.356	879	1230	POST	200	text/html	http://localhost:8087/modxrevo/connectors/security/user.php
            • 24068
            • 4 Posts
            And to be complete, here are the HttpFox results of modx revo beta3 installed on a shared server:

            00:00:03.204	0.044	1302	(268)	GET	(Cache)	image/png	http://[secret]/modxrevo/manager/templates/default/images/restyle/i/bg-drop-last.png
            00:00:10.095	0.484	1187	290	GET	200	text/html	http://[secret]/modxrevo/manager/
            00:00:10.752	2.585	1235	(139217)	GET	(Cache)	text/css	http://[secret]/modxrevo/manager/assets/ext3/resources/css/ext-all.css
            00:00:10.881	0.201	1246	(39823)	GET	(Cache)	text/css	http://[secret]/modxrevo/manager/assets/ext3/resources/css/xtheme-gray-extend.css
            00:00:11.011	0.198	1229	(299)	GET	(Cache)	text/css	http://[secret]/modxrevo/manager/templates/default/css/index.css
            00:00:11.210	1.274	1264	(1206)	GET	(Cache)	text/css	http://[secret]/modxrevo/manager/templates/default/css/structure.css
            00:00:11.335	1.283	1267	(24)	GET	(Cache)	text/css	http://[secret]/modxrevo/manager/templates/default/css/tables/index.css
            00:00:11.458	1.178	1262	(1602)	GET	(Cache)	text/css	http://[secret]/modxrevo/manager/templates/default/css/browser.css
            00:00:11.585	1.055	1264	(221)	GET	(Cache)	text/css	http://[secret]/modxrevo/manager/templates/default/css/workspace.css
            00:00:11.709	0.935	1259	(748)	GET	(Cache)	text/css	http://[secret]/modxrevo/manager/templates/default/css/text.css
            00:00:11.835	0.814	1260	(5899)	GET	(Cache)	text/css	http://[secret]/modxrevo/manager/templates/default/css/icons.css
            00:00:11.958	0.695	1261	(3006)	GET	(Cache)	text/css	http://[secret]/modxrevo/manager/templates/default/css/modext.css
            00:00:12.080	0.700	1267	(1049)	GET	(Cache)	text/css	http://[secret]/modxrevo/manager/templates/default/css/modext/index.css
            00:00:12.205	0.827	1266	(2437)	GET	(Cache)	text/css	http://[secret]/modxrevo/manager/templates/default/css/style/index.css
            00:00:12.330	0.833	1267	(294)	GET	(Cache)	text/css	http://[secret]/modxrevo/manager/templates/default/css/modext/patch.css
            00:00:12.462	0.707	1218	(32145)	GET	(Cache)	application/x-javascript	http://[secret]/modxrevo/manager/assets/ext3/adapter/ext/ext-base.js
            00:00:12.619	4.942	1273	(935)	GET	(Cache)	text/css	http://[secret]/modxrevo/manager/templates/default/css/tables/next.css
            00:00:12.782	4.786	1279	(2090)	GET	(Cache)	text/css	http://[secret]/modxrevo/manager/templates/default/css/modext/extensions.css
            00:00:12.904	4.671	1274	(1514)	GET	(Cache)	text/css	http://[secret]/modxrevo/manager/templates/default/css/modext/style.css
            00:00:13.033	4.547	1273	(2430)	GET	(Cache)	text/css	http://[secret]/modxrevo/manager/templates/default/css/style/navbar.css
            00:00:13.155	4.432	1276	(2673)	GET	(Cache)	text/css	http://[secret]/modxrevo/manager/templates/default/css/style/accordion.css
            00:00:13.338	9.330	1205	621380	GET	200	application/x-javascript	http://[secret]/modxrevo/manager/assets/ext3/ext-all.js
            00:00:13.459	4.237	1209	(6481)	GET	(Cache)	application/x-javascript	http://[secret]/modxrevo/manager/assets/modext/core/modx.js
            00:00:13.582	4.285	1253	39054	GET	200	application/x-javascript	http://[secret]/modxrevo/connectors/lang.js.php?topic=topmenu,file,resource,welcome,configcheck&action=
            00:00:13.708	4.284	1219	264	GET	200	text/html	http://[secret]/modxrevo/connectors/layout/modx.config.js.php?action=
            00:00:13.832	4.022	1222	(3305)	GET	(Cache)	application/x-javascript	http://[secret]/modxrevo/manager/assets/modext/core/modx.localization.js
            00:00:13.955	4.036	1214	(13609)	GET	(Cache)	application/x-javascript	http://[secret]/modxrevo/manager/assets/modext/util/utilities.js
            00:00:14.078	3.934	1217	(2196)	GET	(Cache)	application/x-javascript	http://[secret]/modxrevo/manager/assets/modext/util/switchbutton.js
            00:00:14.207	3.812	1222	(2225)	GET	(Cache)	application/x-javascript	http://[secret]/modxrevo/manager/assets/modext/core/modx.form.handler.js
            00:00:14.332	3.695	1219	(1994)	GET	(Cache)	application/x-javascript	http://[secret]/modxrevo/manager/assets/modext/core/modx.component.js
            00:00:14.451	3.583	1223	(11195)	GET	(Cache)	application/x-javascript	http://[secret]/modxrevo/manager/assets/modext/core/modx.actionbuttons.js
            00:00:14.580	3.460	1221	(1765)	GET	(Cache)	application/x-javascript	http://[secret]/modxrevo/manager/assets/modext/widgets/core/modx.msg.js
            00:00:14.706	3.469	1223	(9779)	GET	(Cache)	application/x-javascript	http://[secret]/modxrevo/manager/assets/modext/widgets/core/modx.panel.js
            00:00:14.834	3.357	1222	(785)	GET	(Cache)	application/x-javascript	http://[secret]/modxrevo/manager/assets/modext/widgets/core/modx.tabs.js
            00:00:14.963	3.234	1224	(4598)	GET	(Cache)	application/x-javascript	http://[secret]/modxrevo/manager/assets/modext/widgets/core/modx.window.js
            00:00:15.086	3.118	1222	(14133)	GET	(Cache)	application/x-javascript	http://[secret]/modxrevo/manager/assets/modext/widgets/core/modx.tree.js
            00:00:15.207	3.004	1223	(21285)	GET	(Cache)	application/x-javascript	http://[secret]/modxrevo/manager/assets/modext/widgets/core/modx.combo.js
            00:00:15.331	2.887	1222	(26583)	GET	(Cache)	application/x-javascript	http://[secret]/modxrevo/manager/assets/modext/widgets/core/modx.grid.js
            00:00:15.451	2.776	1228	(8452)	GET	(Cache)	application/x-javascript	http://[secret]/modxrevo/manager/assets/modext/widgets/core/modx.grid.local.js
            00:00:15.572	2.661	1225	(3685)	GET	(Cache)	application/x-javascript	http://[secret]/modxrevo/manager/assets/modext/widgets/core/modx.console.js
            00:00:15.696	2.544	1224	(6371)	GET	(Cache)	application/x-javascript	http://[secret]/modxrevo/manager/assets/modext/widgets/core/modx.portal.js
            00:00:15.819	2.429	1221	(8556)	GET	(Cache)	application/x-javascript	http://[secret]/modxrevo/manager/assets/modext/widgets/modx.treedrop.js
            00:00:15.943	2.311	1215	(22775)	GET	(Cache)	application/x-javascript	http://[secret]/modxrevo/manager/assets/modext/widgets/windows.js
            00:00:16.066	2.195	1235	(16300)	GET	(Cache)	application/x-javascript	http://[secret]/modxrevo/manager/assets/modext/widgets/resource/modx.tree.resource.js
            00:00:16.188	2.079	1233	(7983)	GET	(Cache)	application/x-javascript	http://[secret]/modxrevo/manager/assets/modext/widgets/element/modx.tree.element.js
            00:00:16.312	1.962	1234	(7832)	GET	(Cache)	application/x-javascript	http://[secret]/modxrevo/manager/assets/modext/widgets/system/modx.tree.directory.js
            00:00:16.435	1.848	1241	(10554)	GET	(Cache)	application/x-javascript	http://[secret]/modxrevo/manager/assets/modext/util/filetree/js/Ext.ux.form.BrowseButton.js
            00:00:16.562	1.727	1236	(15461)	GET	(Cache)	application/x-javascript	http://[secret]/modxrevo/manager/assets/modext/util/filetree/js/Ext.ux.FileUploader.js
            00:00:16.684	1.612	1235	(18582)	GET	(Cache)	application/x-javascript	http://[secret]/modxrevo/manager/assets/modext/util/filetree/js/Ext.ux.UploadPanel.js
            00:00:16.807	1.495	1239	(6793)	GET	(Cache)	text/css	http://[secret]/modxrevo/manager/assets/modext/util/filetree/css/icons.css
            00:00:16.934	1.373	1242	(4023)	GET	(Cache)	text/css	http://[secret]/modxrevo/manager/assets/modext/util/filetree/css/filetype.css
            00:00:17.056	1.256	1242	(2175)	GET	(Cache)	text/css	http://[secret]/modxrevo/manager/assets/modext/util/filetree/css/filetree.css
            00:00:17.179	1.139	1216	(5543)	GET	(Cache)	application/x-javascript	http://[secret]/modxrevo/manager/assets/modext/core/modx.layout.js
            00:00:17.303	1.024	1226	(2864)	GET	(Cache)	application/x-javascript	http://[secret]/modxrevo/manager/assets/modext/widgets/modx.panel.welcome.js
            00:00:17.427	0.906	1247	(1998)	GET	(Cache)	application/x-javascript	http://[secret]/modxrevo/manager/assets/modext/widgets/security/modx.grid.user.recent.resource.js
            00:00:17.550	0.793	1216	(603)	GET	(Cache)	application/x-javascript	http://[secret]/modxrevo/manager/assets/modext/sections/welcome.js
            00:00:18.178	0.205	1319	260	GET	200	image/gif	http://[secret]/modx/manager/media/script/_session.gif?0.5130123142371831
            00:00:23.510	2.125	1481	301	POST	200	text/html	http://[secret]/modxrevo/connectors/security/user.php
            00:00:24.537	1.221	1443	301	POST	200	text/html	http://[secret]/modxrevo/connectors/resource/index.php
            00:00:24.669	1.799	1475	301	POST	200	text/html	http://[secret]/modxrevo/connectors/resource/index.php?action=getNodes&id=root
            00:00:24.819	1.772	1474	301	POST	200	text/html	http://[secret]/modxrevo/connectors/element/index.php?action=getNodes&id=root
            00:00:24.965	1.747	1509	301	POST	200	text/html	http://[secret]/modxrevo/connectors/browser/directory.php?action=getList&id=root
            00:00:25.422	2.592	1490	327	POST	200	text/html	http://[secret]/modx/manager/index.php
            00:00:26.855	1.289	1481	301	POST	200	text/html	http://[secret]/modxrevo/connectors/security/user.php
            00:00:27.317	3.001	1490	301	POST	200	text/html	http://[secret]/modxrevo/connectors/resource/index.php?action=getNodes&id=web_0&type=context
            00:00:27.597	2.871	1507	301	POST	200	text/html	http://[secret]/modxrevo/connectors/element/index.php?action=getNodes&id=n_type_snippet&type=snippet
            00:00:30.674	0.517	1519	301	POST	200	text/html	http://[secret]/modxrevo/connectors/element/index.php?action=getNodes&id=n_snippet_category_1&type=snippet


            the shared server is a faster machine, that makes modx useable. but still, its not as fast as it should be.

            again, my theory is that: not closing the session is blocking the last requests.
              • 22303 MODX Staff
              • 10,725 Posts
              I see nothing like those response times you are getting on any server I have Revo deployed on, nor on my OS X dev machine. Also, MODx uses a custom session_handler class that only writes to the session table if the session data changes or the cache_db_session_lifetime setting is surpassed since the last write (by default this value is the 1/4 of the php.ini’s session.gc_max_lifetime, or session_gc_max_lifetime setting if you provide one in the configuration), so, I don’t think the problem has anything to do with session blocking, but I’ll review it again anyway. I’m not sure what the problem is, but perhaps it’s something in your Firefox installation slowing everything down; it’s a javascript heavy manager application so any Javascript-related extensions you have enabled may be affecting it.

              Here are my results for comparison (when clicking Home):
              00:01:12.603	0.225	493	290	GET	200	text/html	http://localhost/modx2.0.0/manager/?a=&
              00:01:12.948	0.991	485	(143116)	GET	(Cache)	text/css	http://localhost/modx2.0.0/manager/assets/ext3/resources/css/ext-all.css
              00:01:12.991	0.121	496	(41520)	GET	(Cache)	text/css	http://localhost/modx2.0.0/manager/assets/ext3/resources/css/xtheme-gray-extend.css
              00:01:13.034	0.120	479	(299)	GET	(Cache)	text/css	http://localhost/modx2.0.0/manager/templates/default/css/index.css
              00:01:13.077	0.506	468	(32145)	GET	(Cache)	application/javascript	http://localhost/modx2.0.0/manager/assets/ext3/adapter/ext/ext-base.js
              00:01:13.154	0.433	510	(1206)	GET	(Cache)	text/css	http://localhost/modx2.0.0/manager/templates/default/css/structure.css
              00:01:13.197	0.433	513	(24)	GET	(Cache)	text/css	http://localhost/modx2.0.0/manager/templates/default/css/tables/index.css
              00:01:13.239	0.442	508	(1602)	GET	(Cache)	text/css	http://localhost/modx2.0.0/manager/templates/default/css/browser.css
              00:01:13.282	0.401	510	(221)	GET	(Cache)	text/css	http://localhost/modx2.0.0/manager/templates/default/css/workspace.css
              00:01:13.326	0.359	505	(748)	GET	(Cache)	text/css	http://localhost/modx2.0.0/manager/templates/default/css/text.css
              00:01:13.369	0.319	506	(5899)	GET	(Cache)	text/css	http://localhost/modx2.0.0/manager/templates/default/css/icons.css
              00:01:13.411	0.280	507	(3006)	GET	(Cache)	text/css	http://localhost/modx2.0.0/manager/templates/default/css/modext.css
              00:01:13.454	0.280	513	(1049)	GET	(Cache)	text/css	http://localhost/modx2.0.0/manager/templates/default/css/modext/index.css
              00:01:13.497	0.343	512	(2578)	GET	(Cache)	text/css	http://localhost/modx2.0.0/manager/templates/default/css/style/index.css
              00:01:13.539	0.377	513	(294)	GET	(Cache)	text/css	http://localhost/modx2.0.0/manager/templates/default/css/modext/patch.css
              00:01:13.631	0.323	519	(935)	GET	(Cache)	text/css	http://localhost/modx2.0.0/manager/templates/default/css/tables/next.css
              00:01:13.734	0.223	525	(2090)	GET	(Cache)	text/css	http://localhost/modx2.0.0/manager/templates/default/css/modext/extensions.css
              00:01:13.777	0.182	520	(1514)	GET	(Cache)	text/css	http://localhost/modx2.0.0/manager/templates/default/css/modext/style.css
              00:01:13.841	0.120	519	(3015)	GET	(Cache)	text/css	http://localhost/modx2.0.0/manager/templates/default/css/style/navbar.css
              00:01:13.882	0.082	520	(2649)	GET	(Cache)	text/css	http://localhost/modx2.0.0/manager/templates/default/css/style/leftbar.css
              00:01:14.059	0.214	455	(624432)	GET	(Cache)	application/javascript	http://localhost/modx2.0.0/manager/assets/ext3/ext-all.js
              00:01:14.334	0.029	459	(6516)	GET	(Cache)	application/javascript	http://localhost/modx2.0.0/manager/assets/modext/core/modx.js
              00:01:14.405	0.150	503	39490	GET	200	application/x-javascript	http://localhost/modx2.0.0/connectors/lang.js.php?topic=topmenu,file,resource,welcome,configcheck&action=
              00:01:14.610	0.245	469	264	GET	200	text/html	http://localhost/modx2.0.0/connectors/layout/modx.config.js.php?action=
              00:01:14.925	0.027	472	(3305)	GET	(Cache)	application/javascript	http://localhost/modx2.0.0/manager/assets/modext/core/modx.localization.js
              00:01:14.993	0.044	464	(13609)	GET	(Cache)	application/javascript	http://localhost/modx2.0.0/manager/assets/modext/util/utilities.js
              00:01:15.078	0.030	467	(2196)	GET	(Cache)	application/javascript	http://localhost/modx2.0.0/manager/assets/modext/util/switchbutton.js
              00:01:15.150	0.021	472	(2225)	GET	(Cache)	application/javascript	http://localhost/modx2.0.0/manager/assets/modext/core/modx.form.handler.js
              00:01:15.213	0.028	469	(1994)	GET	(Cache)	application/javascript	http://localhost/modx2.0.0/manager/assets/modext/core/modx.component.js
              00:01:15.283	0.030	473	(11195)	GET	(Cache)	application/javascript	http://localhost/modx2.0.0/manager/assets/modext/core/modx.actionbuttons.js
              00:01:15.355	0.026	471	(1765)	GET	(Cache)	application/javascript	http://localhost/modx2.0.0/manager/assets/modext/widgets/core/modx.msg.js
              00:01:15.423	0.023	473	(10178)	GET	(Cache)	application/javascript	http://localhost/modx2.0.0/manager/assets/modext/widgets/core/modx.panel.js
              00:01:15.488	0.026	472	(785)	GET	(Cache)	application/javascript	http://localhost/modx2.0.0/manager/assets/modext/widgets/core/modx.tabs.js
              00:01:15.556	0.031	474	(4598)	GET	(Cache)	application/javascript	http://localhost/modx2.0.0/manager/assets/modext/widgets/core/modx.window.js
              00:01:15.628	0.029	472	(14151)	GET	(Cache)	application/javascript	http://localhost/modx2.0.0/manager/assets/modext/widgets/core/modx.tree.js
              00:01:15.699	0.046	473	(22192)	GET	(Cache)	application/javascript	http://localhost/modx2.0.0/manager/assets/modext/widgets/core/modx.combo.js
              00:01:15.787	0.032	472	(26856)	GET	(Cache)	application/javascript	http://localhost/modx2.0.0/manager/assets/modext/widgets/core/modx.grid.js
              00:01:15.861	0.029	478	(8452)	GET	(Cache)	application/javascript	http://localhost/modx2.0.0/manager/assets/modext/widgets/core/modx.grid.local.js
              00:01:15.957	0.027	475	(4086)	GET	(Cache)	application/javascript	http://localhost/modx2.0.0/manager/assets/modext/widgets/core/modx.console.js
              00:01:16.025	0.030	474	(6371)	GET	(Cache)	application/javascript	http://localhost/modx2.0.0/manager/assets/modext/widgets/core/modx.portal.js
              00:01:16.096	0.027	471	(8556)	GET	(Cache)	application/javascript	http://localhost/modx2.0.0/manager/assets/modext/widgets/modx.treedrop.js
              00:01:16.166	0.025	465	(23800)	GET	(Cache)	application/javascript	http://localhost/modx2.0.0/manager/assets/modext/widgets/windows.js
              00:01:16.233	0.028	485	(16549)	GET	(Cache)	application/javascript	http://localhost/modx2.0.0/manager/assets/modext/widgets/resource/modx.tree.resource.js
              00:01:16.303	0.030	483	(7945)	GET	(Cache)	application/javascript	http://localhost/modx2.0.0/manager/assets/modext/widgets/element/modx.tree.element.js
              00:01:16.375	0.035	484	(7831)	GET	(Cache)	application/javascript	http://localhost/modx2.0.0/manager/assets/modext/widgets/system/modx.tree.directory.js
              00:01:16.452	0.029	491	(10629)	GET	(Cache)	application/javascript	http://localhost/modx2.0.0/manager/assets/modext/util/filetree/js/Ext.ux.form.BrowseButton.js
              00:01:16.522	0.030	486	(15580)	GET	(Cache)	application/javascript	http://localhost/modx2.0.0/manager/assets/modext/util/filetree/js/Ext.ux.FileUploader.js
              00:01:16.594	0.032	485	(18652)	GET	(Cache)	application/javascript	http://localhost/modx2.0.0/manager/assets/modext/util/filetree/js/Ext.ux.UploadPanel.js
              00:01:16.668	0.151	489	(6793)	GET	(Cache)	text/css	http://localhost/modx2.0.0/manager/assets/modext/util/filetree/css/icons.css
              00:01:16.711	0.111	492	(4023)	GET	(Cache)	text/css	http://localhost/modx2.0.0/manager/assets/modext/util/filetree/css/filetype.css
              00:01:16.754	0.070	492	(2175)	GET	(Cache)	text/css	http://localhost/modx2.0.0/manager/assets/modext/util/filetree/css/filetree.css
              00:01:16.797	0.031	466	(5086)	GET	(Cache)	application/javascript	http://localhost/modx2.0.0/manager/assets/modext/core/modx.layout.js
              00:01:16.872	0.031	476	(2864)	GET	(Cache)	application/javascript	http://localhost/modx2.0.0/manager/assets/modext/widgets/modx.panel.welcome.js
              00:01:16.950	0.029	497	(1998)	GET	(Cache)	application/javascript	http://localhost/modx2.0.0/manager/assets/modext/widgets/security/modx.grid.user.recent.resource.js
              00:01:17.032	0.035	466	(603)	GET	(Cache)	application/javascript	http://localhost/modx2.0.0/manager/assets/modext/sections/welcome.js
              00:01:17.118	0.453	435	(43)	GET	(Cache)	image/gif	http://feeds.feedburner.com/~r/modxsecurity/~4/8Pex1B-_xoM
              00:01:17.162	0.410	435	(43)	GET	(Cache)	image/gif	http://feeds.feedburner.com/~r/modxsecurity/~4/ecu5M0nJUZM
              00:01:17.205	0.369	435	(43)	GET	(Cache)	image/gif	http://feeds.feedburner.com/~r/modxsecurity/~4/C3KWxKMhGVg
              00:01:17.255	0.328	435	(43)	GET	(Cache)	image/gif	http://feeds.feedburner.com/~r/modxsecurity/~4/iOIaDK3E1yA
              00:01:17.298	0.287	435	(43)	GET	(Cache)	image/gif	http://feeds.feedburner.com/~r/modxsecurity/~4/C572rcuV-sg
              00:01:17.342	0.246	435	(43)	GET	(Cache)	image/gif	http://feeds.feedburner.com/~r/modxsecurity/~4/pkUgCmBwhaQ
              00:01:17.387	0.255	435	(43)	GET	(Cache)	image/gif	http://feeds.feedburner.com/~r/modxsecurity/~4/rzBq6NxOm24
              00:01:17.430	0.214	435	(43)	GET	(Cache)	image/gif	http://feeds.feedburner.com/~r/modxsecurity/~4/s5vL8K4hjJ0
              00:01:17.474	0.172	435	(43)	GET	(Cache)	image/gif	http://feeds.feedburner.com/~r/modxsecurity/~4/Ellvj72uaec
              00:01:17.518	0.158	435	(43)	GET	(Cache)	image/gif	http://feeds.feedburner.com/~r/modxsecurity/~4/tsc75ZI4neI
              00:01:17.845	0.942	731	1298	POST	200	text/html	http://localhost/modx2.0.0/connectors/security/user.php
              00:01:18.276	0.696	693	1895	POST	200	text/html	http://localhost/modx2.0.0/connectors/resource/index.php
              00:01:18.361	0.887	725	2641	POST	200	text/html	http://localhost/modx2.0.0/connectors/resource/index.php?action=getNodes&id=root
              00:01:18.431	0.755	724	2903	POST	200	text/html	http://localhost/modx2.0.0/connectors/element/index.php?action=getNodes&id=root
              00:01:18.516	0.795	759	6356	POST	200	text/html	http://localhost/modx2.0.0/connectors/browser/directory.php?action=getList&id=root
              00:01:18.867	0.787	731	1298	POST	200	text/html	http://localhost/modx2.0.0/connectors/security/user.php
              00:01:19.422	0.403	740	3600	POST	200	text/html	http://localhost/modx2.0.0/connectors/resource/index.php?action=getNodes&id=web_0&type=context
                • 24068
                • 4 Posts
                Also, MODx uses a custom session_handler class that only writes to the session table if the session data changes or the cache_db_session_lifetime setting is surpassed since the last write (by default this value is the 1/4 of the php.ini’s session.gc_max_lifetime, or session_gc_max_lifetime setting if you provide one in the configuration)

                As far as i know php blocks one session until its finished, regardless if you use a costum session-handler or not.

                so, I don’t think the problem has anything to do with session blocking

                Maybe youre right, maybe thats not realy the source of my speed-results. i’ll investigate that further with a clean ff profile and an installment on an other machine, posting the results right here.
                  • 24068
                  • 4 Posts
                  Quote from: pureppl at Oct 11, 2009, 06:30 PM

                  Also, MODx uses a custom session_handler class that only writes to the session table if the session data changes or the cache_db_session_lifetime setting is surpassed since the last write (by default this value is the 1/4 of the php.ini’s session.gc_max_lifetime, or session_gc_max_lifetime setting if you provide one in the configuration)

                  As far as i know php blocks one session until its finished, regardless if you use a costum session-handler or not.

                  I wrote a script and looks like i was wrong. The php build-in session handler locks and a costum handler dosnt.
                    • 22303 MODX Staff
                    • 10,725 Posts
                    Quote from: pureppl at Oct 11, 2009, 06:30 PM

                    Also, MODx uses a custom session_handler class that only writes to the session table if the session data changes or the cache_db_session_lifetime setting is surpassed since the last write (by default this value is the 1/4 of the php.ini’s session.gc_max_lifetime, or session_gc_max_lifetime setting if you provide one in the configuration)

                    As far as i know php blocks one session until its finished, regardless if you use a costum session-handler or not.
                    After further research, it seems the default session handler in PHP does lock the session file until a request is finished (lovely), but this is not true with a custom session_handler that uses a database table or memory-based sessions. This is why we chose to use database session handling as the default in 2.0.0. And this is different than frames where there are multiple primary HTTP requests involved. With AJAX requests, the initial HTTP request is finished already because it is returning the content containing the AJAX calls. The only contention here then would be between multiple AJAX requests from that primary HTTP request’s response.

                    But it does bring up a good point in that any longer running AJAX requests might overwrite the session data written by other concurrent AJAX requests. I’m going to be doing some more detailed testing in this realm and it may be that we need to write the session data as quickly as possible anyway, though that still may not solve the problem in every case if session data is being written by multiple AJAX requests within the same primary HTTP request cycle.
                      • 22303 MODX Staff
                      • 10,725 Posts
                      FWIW, this issue should be resolved for the upcoming 2.0.5 release by explicitly calling session_write_close() before all the possible exit points in the core. See https://github.com/modxcms/revolution/commit/18e311258a87cd3609a6e6adaa621af5281fe6f8 for details on the fix.