<br><br><div><span class="gmail_quote">On 3/15/06, <b class="gmail_sendername">Rusty McEacharn</b> &lt;<a href="mailto:mceachrw@gmail.com">mceachrw@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
i just upgraded to .19 from .18.1 and spent three hours last night trying to improve the performance of mythweb.&nbsp; i read every recent post about slowness and tried the following with no success:<br>-optimize_mythdb.pl<br>
-move the .htaccess directives to 
httpd.conf<br>-add the following to my.conf<br>&nbsp;&nbsp; &nbsp;key_buffer = 48M<br>&nbsp;&nbsp; &nbsp;max_allowed_packet = 8M<br>&nbsp;&nbsp; &nbsp;table_cache = 128<br>&nbsp;&nbsp; &nbsp;sort_buffer_size = 48M<br>&nbsp;&nbsp; &nbsp;net_buffer_length = 8M<br>&nbsp;&nbsp; &nbsp;thread_cache_size = 4<br>&nbsp;&nbsp; &nbsp;query_cache_type = 1
<br>&nbsp;&nbsp; &nbsp;query_cache_size = 4M </blockquote><div><br>It seems you did not read my postings...<br>&nbsp;<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
the backend performs fine.&nbsp; performance before and after the upgrade is similar.&nbsp; but, i normally use mythweb from my desktop box (winxp) and .19 performance is horrible.&nbsp; so...i stuck a live linux cd in my windows box.&nbsp; to my surprise, .19 performance was as it should be.&nbsp; can a few dual booters out there do some testing to confirm this problem?&nbsp; other suggestions to fix this?
<br><br>backend: 700 mhz celeron, i810, 256 mb ram, fc3 up to date using atrpms<br>desktop (windows): a64 3000, nf4, 1000 mb ram, xp pro up to date using windows update<br>desktop (live linux): same hardware running slax 
v5.0.7 using copy2ram, like knoppix with everything in ram<br><br>page load times<br>live linux&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;windows&nbsp;&nbsp; &nbsp;&nbsp; task<br>9 sec&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;38 sec&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; listings, ~150 channels<br>3 sec&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;30 sec&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; recorded programs, 7 episodes
<br>1 sec&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;1 sec&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; backend status<br>3 sec&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;30 sec&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; upcoming recordings<br>3 sec&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;30 sec&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; search

</blockquote><div><br><br>I had three problems. The first was that the all *.js files were retrieved for every single page. Look into the apache log file (/var/log/http/...) if that is the case. After I had switched between different browsers and tried to open the 
mouseovers.js file explicitly in a browser, that problem disappeared and the load time for a listings page dropped from 40 seconds to 12 seconds.<br><br>The second problem was due to my high number of recording schedules. The program listings page retrieves extra information for every single program that has been set to be recorded, no matter if the program is within the displayed time frame or not. And I have around 200 scheduled recordings each week... I fixed it by commenting the following lines out of the file /var/www/html/mythweb/includes/programs.php:
<br><div id="mb_2"><br><img alt="">/*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; elseif ($this-&gt;chanid) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; unset($this-&gt;filename);
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Kludge to avoid redefining the object, which doesn't work in php5<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $tmp = @get_object_vars(load_one_program($this-&gt;starttime, $this-&gt;chanid));<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (is_array($tmp) &amp;&amp; count($tmp) &gt; 0) {
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; foreach ($tmp as $key =&gt; $value) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $this-&gt;$key = $value;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }*/</div></div><br>Somebody stated that it does not work with a Safari browser on MacOSX. I have tested my setup on a Safari browser and it works. I still has not found any missing information in any of the MythWeb pages, so the lines above seem unnecessary. The time needed to load the page is now down to 2 seconds.
<br><br>The third problem is related to the recorded programs page. MythWeb still runs through all programs to see if their icons are missing or something like that. Apparently it has problems regenerating a couple of them, and that slows the page down. I do not use that page very much, so I have not looked deeper into that problem.
<br><br>Niels Dybdahl<br></div><br>