11
technobia
Site causes CPU to run at 100% utilization
  • 2007/7/12 6:28

  • technobia

  • Not too shy to talk

  • Posts: 122

  • Since: 2006/4/17


Xoops 2.0.16 on a Windows 2003 Server running IIS 6.0

I have been running a pretty large site since October of last year. Although it has always taken up a fair amount of resources, all of a sudden 3 days ago it started just hammering the CPU often with 100% utilization for extended period of times.

I have user registration disabled and all comments are disabled in all modules except Xpress (WordPress for Xoops) I have the Protector module loaded and active with banning of IP’s enabled.

I have banned some IP’s at the server level that appeared as suspicious referrers in the website stats. I have also observed visitor stats are normal but bandwidth is up which seems odd. I have run maintenance on and optimized the database.

What I find interesting is that even with the site turned off in the System/Presences, the CPU utilization issue remains the same. It is only when I stop the website in IIS does the CPU go back to normal utilization levels.

I would most appreciate some serious help with this as the site is virtually unusable.
Thanks, Technobia
www.PrideDEPOT.com
Everybody Has A Right!



12
technobia
Thumbnail search results in MyAlbum
  • 2007/6/11 18:35

  • technobia

  • Not too shy to talk

  • Posts: 122

  • Since: 2006/4/17


I am using MyAllbum ver 2.84 in a XOOPS 2.0.16 site. The end user has requested a search result that comes up with thumbnails and Titles instead of the text link list that the main XOOPS search results show up with.

Any suggestions on how to achieve this, or could someone recommend a different module with these features?

This site is an art galley and people will be searching for different kinds of art based on keywords in the art peice description.
Thanks, Technobia
www.PrideDEPOT.com
Everybody Has A Right!



13
technobia
Re: Users can't login
  • 2007/4/7 19:32

  • technobia

  • Not too shy to talk

  • Posts: 122

  • Since: 2006/4/17


Interesting. Honestly I am not quite sure what to do with that info. I have cleared cache from the folder level without resolve. I have not seen this issue with other browsers. However that just may be becasue I have not encounterd this issue that many times so far.

I am at a loss.
Thanks
Thanks, Technobia
www.PrideDEPOT.com
Everybody Has A Right!



14
technobia
Re: Users can't login
  • 2007/4/7 19:07

  • technobia

  • Not too shy to talk

  • Posts: 122

  • Since: 2006/4/17


Ok folks,

Here is what I have so far, which is not much. I verified the clock setting on all machines and servers and they are all set correctly for their physical time zone. The issue I thought might be related has turned out not to be at all.

One machine is resolved only because of a hard drive crash and the machine was rebuilt and now that user can get in with their login via IE7. However I have not found a solution for the remote system.

Still could use some help.
Thanks
Thanks, Technobia
www.PrideDEPOT.com
Everybody Has A Right!



15
technobia
Re: Users can't login
  • 2007/4/1 15:03

  • technobia

  • Not too shy to talk

  • Posts: 122

  • Since: 2006/4/17


Will do! For Sure
Thanks, Technobia
www.PrideDEPOT.com
Everybody Has A Right!



16
technobia
Re: Users can't login
  • 2007/4/1 14:24

  • technobia

  • Not too shy to talk

  • Posts: 122

  • Since: 2006/4/17


That is intersting since I am currently having an email time stamp issue. One user is in Pacific Time the other Mountian time.

I am wondering if this new Day Light Savings time change has something to do with this? Although my server is physically in the Pacific Time Zone, I have always had it set for Mountian Time becasue that is where I (the webmaster) am located. Because of the email issue, I have just verified all my time zone settings and they are correct. I will however verify that with the user machines just to be sure.

The strange thing is that this issue is only occuring on the user computers and only in IE on one machine we have not tested anohter browser on the second machine.
Thanks, Technobia
www.PrideDEPOT.com
Everybody Has A Right!



17
technobia
Users can't login
  • 2007/4/1 1:04

  • technobia

  • Not too shy to talk

  • Posts: 122

  • Since: 2006/4/17


System Info:
- XOOPS 2.0.16 / PHP 5.1 / MySQL 4.1 / IIS 6.0

Issue:
- Two users who are not able to login from there location

User Configurations:
- One has been locked out for awhile the other we just noticed
- These users are members of two different custom groups that have worked previously for months.
- Both users are in different parts of the country and use different ISP’s

Issue Behavior:
- They login with a known good and previously used account
- They get the login confirmation page that says Thanks USERNAME
- Then they are re-directed back to the home page as normal
- The login block still shows instead of the User Menu.
- Thefore, higher permission resources are not available

What I have tried:
- Re-installing IE browser
- Happens On IE6 & IE7
- Works ok with Netscape
- Deactivated the Protector module
- Emptied out all blocked IP addresses
- I have reset the User passwords
- Verified Group and module access permissions
- I am able to login from my location with thier users
Thanks, Technobia
www.PrideDEPOT.com
Everybody Has A Right!



18
technobia
Re: mX-Directory Error
  • 2007/3/20 19:48

  • technobia

  • Not too shy to talk

  • Posts: 122

  • Since: 2006/4/17


Hey zyspec,

That did the trick thanks!!! I did however notice that the second part of line 40 did not rem out properly so I had to eliminate the code entirely. But, I am good to go now!

Thanks so very much - Your time & help IS VERY appreciated!
Thanks, Technobia
www.PrideDEPOT.com
Everybody Has A Right!



19
technobia
Re: mX-Directory Error
  • 2007/3/20 0:46

  • technobia

  • Not too shy to talk

  • Posts: 122

  • Since: 2006/4/17


Thanks James.

Here is the Template_c file:

<?php /* Smarty version 2.6.13, created on 2007-03-19 13:14:41
         compiled from db:xdir_index.html */ 
?>
<?php 
echo ; ?>
<?php 
echo $this->_tpl_vars['xoops_module_header']; ?>

<table width="888" border="0" align="center" cellpadding="0" cellspacing="0" class="c_search">
  <tr>
    <td class="c_search_l"><?php echo @_MD_DIRHEADER?>
</td>
    <td class="c_search_table">
    <?php if ($this->_tpl_vars['usesearch'] != '0'): ?>
            <!--Search Table-->
            <form name='search' id='search' action='<?php echo $this->_tpl_vars['xoops_url']; ?>
/search.php' method='post' onsubmit='return xoopsFormValidate_search();'>
              <input type='hidden' name='mids[]' value='<?php echo $this->_tpl_vars['xmid']; ?>
' />
                <input name='query' type='text' class="c_search_input" id='query' value='' size='20' maxlength='255' />
                    <select name='andor'  size='1' class="c_search_select" id='andor'>
                    <option value='AND' selected='selected'><?php echo @_MD_ALLWORDS?>
</option>
                    <option value='OR'><?php echo @_MD_ANYWORDS?>
</option>
                    <option value='exact'><?php echo @_MD_EXACTMATCH?>
</option>
                </select>
                    <input type='submit' class='c_searchbutton' name='submit'  id='submit' value='<?php echo @_MD_SEARCH?>
' />
              <input type='hidden' name='action' id='action' value='results' />
            </form>

      <?php endif; ?>
    </td>
    <td class="c_search_r"><div><a href="<?php echo $this->_tpl_vars['xoops_url']; ?>
/modules/<?php echo $this->_tpl_vars['smartydir']; ?>
/savings.php?cid=<?php echo $this->_tpl_vars['category_id']; ?>
"><?php echo @_MD_SAVINGS?>
</a></div>
    <div><a href="<?php echo $this->_tpl_vars['xoops_url']; ?>
/modules/<?php echo $this->_tpl_vars['smartydir']; ?>
/submit.php"><?php echo @_MD_SUBMITLINK?>
</a></div></td>
  </tr>
  <?php if ($this->_tpl_vars['usealpha'] != '0'): ?>
  <tr align="center">
    <td colspan="3" class="c_select_letters"><?php echo @_MD_SEARCHFOR?>
:&nbsp;<?php echo $this->_tpl_vars['letters']; ?>

    </td>
  </tr>
  <?php endif; ?>
</table>
<hr />

<script type='text/javascript'>
<!--
  function xoopsFormValidate_search(){}
//-->
</script>

  <!-- Start category loop -->
  <?php $_from $this->_tpl_vars['categories']; if (!is_array($_from) && !is_object($_from)) { settype($_from'array'); }$this->_foreach['tlcat'] = array('total' => count($_from), 'iteration' => 0);
if (
$this->_foreach['tlcat']['total'] > 0):
    foreach (
$_from as $this->_tpl_vars['category']):
        
$this->_foreach['tlcat']['iteration']++;
 if ((
$this->_foreach['tlcat']['iteration'] <= 1)): ?>
<table cellspacing='5' style="border-style: none; padding: 0px; text-align: left;">
      <tr>
    <?php endif; ?>
        <td valign="top">
        <?php if ($this->_tpl_vars['category']['image'] != ""): ?>
          <a href="<?php echo $this->_tpl_vars['xoops_url']; ?>
/modules/<?php echo $this->_tpl_vars['smartydir']; ?>
/viewcat.php?cid=<?php echo $this->_tpl_vars['category']['id']; ?>
"><img src="<?php echo $this->_tpl_vars['category']['image']; ?>
" alt="" height="50" border="0" class="c_img_display" /></a>
        <?php endif; ?>        </td>
        <td valign="top" width="33%"><span class="index_category_title"><a href="<?php echo $this->_tpl_vars['xoops_url']; ?>
/modules/<?php echo $this->_tpl_vars['smartydir']; ?>
/viewcat.php?cid=<?php echo $this->_tpl_vars['category']['id']; ?>
" class="c_title"><?php echo $this->_tpl_vars['category']['title']; ?>
</a>&nbsp;</span>          <span class="index_subcats">(<?php echo $this->_tpl_vars['category']['totallink']; ?>
)<br />
        <?php echo $this->_tpl_vars['category']['subcategories']; ?>
</span> </td>
    <?php if (!($this->_tpl_vars['category']['count'] % 3)): ?>      </tr><tr>
        <?php endif; ?>
    <?php if (($this->_foreach['tlcat']['iteration'] == $this->_foreach['tlcat']['total'])): ?>
      </tr>
</table>
    <br /><br />
    <div class="c_desc"><?php echo $this->_tpl_vars['lang_thereare']; ?>
</div>
    <hr /><br />
    <?php endif; ?>        
  <?php endforeach; endif; unset($_from); ?>
  <!-- End category loop -->

<?php if ($this->_tpl_vars['links'] != ""): ?>
  <h4 class="c_title"><?php echo $this->_tpl_vars['lang_latestlistings']; ?>
</h4>
  <table width="100%" class="index_category_links_display">
    <tr><td width="100%" align="center" valign="top">
      <!-- Start new link loop -->
      <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['category']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > $this->_sections['i']['loop']-1;
if (
$this->_sections['i']['show']) {
    
$this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if (
$this->_sections['i']['total'] == 0)
        
$this->_sections['i']['show'] = false;
} else
    
$this->_sections['i']['total'] = 0;
if (
$this->_sections['i']['show']):

            for (
$this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 
$this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 
$this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
        <?php echo $this->_tpl_vars['link']['category']; ?>

        <?php unset($this->_sections['i']);
$this->_sections['i']['name'] = 'i';
$this->_sections['i']['loop'] = is_array($_loop=$this->_tpl_vars['links']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['i']['show'] = true;
$this->_sections['i']['max'] = $this->_sections['i']['loop'];
$this->_sections['i']['step'] = 1;
$this->_sections['i']['start'] = $this->_sections['i']['step'] > $this->_sections['i']['loop']-1;
if (
$this->_sections['i']['show']) {
    
$this->_sections['i']['total'] = $this->_sections['i']['loop'];
    if (
$this->_sections['i']['total'] == 0)
        
$this->_sections['i']['show'] = false;
} else
    
$this->_sections['i']['total'] = 0;
if (
$this->_sections['i']['show']):

            for (
$this->_sections['i']['index'] = $this->_sections['i']['start'], $this->_sections['i']['iteration'] = 1;
                 
$this->_sections['i']['iteration'] <= $this->_sections['i']['total'];
                 
$this->_sections['i']['index'] += $this->_sections['i']['step'], $this->_sections['i']['iteration']++):
$this->_sections['i']['rownum'] = $this->_sections['i']['iteration'];
$this->_sections['i']['index_prev'] = $this->_sections['i']['index'] - $this->_sections['i']['step'];
$this->_sections['i']['index_next'] = $this->_sections['i']['index'] + $this->_sections['i']['step'];
$this->_sections['i']['first']      = ($this->_sections['i']['iteration'] == 1);
$this->_sections['i']['last']       = ($this->_sections['i']['iteration'] == $this->_sections['i']['total']);
?>
          <?php $_smarty_tpl_vars $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "db:xdir_link.html"'smarty_include_vars' => array('link' => $this->_tpl_vars['links'][$this->_sections['i']['index']])));
$this->_tpl_vars $_smarty_tpl_vars;
unset(
$_smarty_tpl_vars);
 
?>
        <?php endfor; endif; ?>
      <?php endfor; endif; ?>
      <!-- End new link loop -->
    </td></tr>
</table>
<?php endif; ?>
<?php $_smarty_tpl_vars 
$this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'db:system_notification_select.html''smarty_include_vars' => array()));
$this->_tpl_vars $_smarty_tpl_vars;
unset(
$_smarty_tpl_vars);
 
?>


Here is the xdir_index.html file:
<{$xoops_module_header}>
<
table width="888" border="0" align="center" cellpadding="0" cellspacing="0" class="c_search">
  <
tr>
    <
td class="c_search_l"><{$smarty.const._MD_DIRHEADER}></td>
    <
td class="c_search_table">
    <{if 
$usesearch != "0"}>
            <!--
Search Table-->
            <
form name='search' id='search' action='<{$xoops_url}>/search.php' method='post' onsubmit='return xoopsFormValidate_search();'>
              <
input type='hidden' name='mids[]' value='<{$xmid}>' />
                <
input name='query' type='text' class="c_search_input" id='query' value='' size='20' maxlength='255' />
                    <
select name='andor'  size='1' class="c_search_select" id='andor'>
                    <
option value='AND' selected='selected'><{$smarty.const._MD_ALLWORDS}></option>
                    <
option value='OR'><{$smarty.const._MD_ANYWORDS}></option>
                    <
option value='exact'><{$smarty.const._MD_EXACTMATCH}></option>
                </
select>
                    <
input type='submit' class='c_searchbutton' name='submit'  id='submit' value='<{$smarty.const._MD_SEARCH}>' />
              <
input type='hidden' name='action' id='action' value='results' />
            </
form>

      <{/if}>
    </
td>
    <
td class="c_search_r"><div><a href="<{$xoops_url}>/modules/<{$smartydir}>/savings.php?cid=<{$category_id}>"><{$smarty.const._MD_SAVINGS}></a></div>
    <
div><a href="<{$xoops_url}>/modules/<{$smartydir}>/submit.php"><{$smarty.const._MD_SUBMITLINK}></a></div></td>
  </
tr>
  <{if 
$usealpha != "0"}>
  <
tr align="center">
    <
td colspan="3" class="c_select_letters"><{$smarty.const._MD_SEARCHFOR}>:&nbsp;<{$letters}>
    </
td>
  </
tr>
  <{/if }>
</
table>
<
hr />

<
script type='text/javascript'>
<!--
  function 
xoopsFormValidate_search(){}
//-->
</script>

  <!-- 
Start category loop -->
  <{foreach 
name=tlcat item=category from=$categories}><{if $smarty.foreach.tlcat.first}>
<
table cellspacing='5' style="border-style: none; padding: 0px; text-align: left;">
      <
tr>
    <{/if}>
        <
td valign="top">
        <{if 
$category.image != ""}>
          <
a href="<{$xoops_url}>/modules/<{$smartydir}>/viewcat.php?cid=<{$category.id}>"><img src="<{$category.image}>" alt="" height="50" border="0" class="c_img_display" /></a>
        <{/if}>        </
td>
        <
td valign="top" width="33%"><span class="index_category_title"><a href="<{$xoops_url}>/modules/<{$smartydir}>/viewcat.php?cid=<{$category.id}>" class="c_title"><{$category.title}></a>&nbsp;</span>          <span class="index_subcats">(<{$category.totallink}>)<br />
        <{
$category.subcategories}></span> </td>
    <{if 
$category.count is div by 3}>      </tr><tr>
        <{/if}>
    <{if 
$smarty.foreach.tlcat.last}>
      </
tr>
</
table>
    <
br /><br />
    <
div class="c_desc"><{$lang_thereare}></div>
    <
hr /><br />
    <{/if}>        
  <{/foreach}>
  <!-- 
End category loop -->

<{if 
$links != ""}>
  <
h4 class="c_title"><{$lang_latestlistings}></h4>
  <
table width="100%" class="index_category_links_display">
    <
tr><td width="100%" align="center" valign="top">
      <!-- 
Start new link loop -->
      <{
section name=i loop=$category}>
        <{
$link.category link=$category[i]}>
        <{
section name=i loop=$links}>
          <{include 
file="db:xdir_link.html" link=$links[i]}>
        <{/
section}>
      <{/
section}>
      <!-- 
End new link loop -->
    </
td></tr>
</
table>
<{/if}>
<{include 
file='db:system_notification_select.html'}>
Thanks, Technobia
www.PrideDEPOT.com
Everybody Has A Right!



20
technobia
Re: mX-Directory Error
  • 2007/3/20 0:33

  • technobia

  • Not too shy to talk

  • Posts: 122

  • Since: 2006/4/17


That would be greatly appreciated. How do you suggest I do that they are both kinda long. I am not sure how to post the code so it is not interpreted.
Thanks, Technobia
www.PrideDEPOT.com
Everybody Has A Right!




TopTop
« 1 (2) 3 4 5 ... 12 »



Login

Who's Online

198 user(s) are online (120 user(s) are browsing Support Forums)


Members: 0


Guests: 198


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits