1
whereray
Re: w3wp.exe cpu 100% in 2003
  • 2005/8/1 2:15

  • whereray

  • Just popping in

  • Posts: 29

  • Since: 2003/4/16


Problem is finally solved. It is quite strange that several files have Access Denied problem even after reboot. So I create a new folder and set it as web root. Then the problem is gone.

Thanks everybody!!



2
whereray
Re: w3wp.exe cpu 100% in 2003
  • 2005/7/15 5:53

  • whereray

  • Just popping in

  • Posts: 29

  • Since: 2003/4/16


1)it is not a hardware problem
2)Thanks jctsup1, I also suspect it is related to corrupted DB index. I find that the table xoops-session often corrupt and has to be fixed by hand.

BTW, I forgot to mention I am still using MySql 3, so MySqlAdmin won't work with it. I will install the latest MySql and have a try.



3
whereray
Re: w3wp.exe cpu 100% in 2003
  • 2005/7/13 7:56

  • whereray

  • Just popping in

  • Posts: 29

  • Since: 2003/4/16


No, the latest version still has the same problem. I installed a clean 2.0.13 but it still causes cpu usage climbing high.

Any other gurus from XOOPS could look at the problem?



4
whereray
w3wp.exe cpu 100% in 2003
  • 2005/7/6 14:23

  • whereray

  • Just popping in

  • Posts: 29

  • Since: 2003/4/16


I just move my web site to a win 2003 server. And I find w3wp.exe causes cpu 100% usage and even overheated. The temp solution is to use the app pool to kill process taken over 70% cpu.

I read a lot posts on this and in most of the cases, it points to DB access. It seems some store procedure may make IIS6 busy.

The site is using XOOPS 2.0.3, which is fine in win2k server.

Is this a bug? How to solve it?



5
whereray
Re: Cant insert PM
  • 2005/6/20 2:33

  • whereray

  • Just popping in

  • Posts: 29

  • Since: 2003/4/16


it works, thanks!!!



6
whereray
Re: Cant insert PM
  • 2005/6/18 16:00

  • whereray

  • Just popping in

  • Posts: 29

  • Since: 2003/4/16


$pm_handler->insert($pm, true)

still returns blank. And it makes no sense to force user use post to insert a pm into table.

Could Mithrandir show me how to do more? Sorry, i am a newbie.



7
whereray
Re: Can't insert PM
  • 2005/6/18 4:05

  • whereray

  • Just popping in

  • Posts: 29

  • Since: 2003/4/16





8
whereray
Can't insert PM
  • 2005/6/18 4:04

  • whereray

  • Just popping in

  • Posts: 29

  • Since: 2003/4/16


I write a test page to insert PM manually. But every time
when it executes privmessage.insert(&$pm)

!$result = $this->db->query($sql)

The $result is always empty and no row updated. following is test.php and debug code in privmessage.php
-----------------------------------------
<?php//test.php
require('header.php');

// Include the page header
include(XOOPS_ROOT_PATH.'/header.php');
$pm_handler =& xoops_gethandler('privmessage');
$pm =& $pm_handler->create();
$pm->setVar("subject", "New App");
$pm->setVar("msg_text", "New Text");
$pm->setVar("to_userid", "1");
$pm->setVar("from_userid", "1");
if (!$pm_handler->insert($pm)) {
echo $pm->getHtmlErrors();
echo "failed";
} else {
echo "done";
}

?>
-----------------------------------
<?php
// $Id: privmessage.php,v 1.3 2003/03/27 14:52:15
function insert(&$pm)
{
......//code neglected
if (!$result = $this->db->query($sql)) {
echo "Bad SQL:<br>$sql<br>";
echo "Result:$result!";
return false;
}
echo "Good SQL:\n$sql";
if (empty($msg_id)) {
$msg_id = $this->db->getInsertId();
}
$pm->assignVar('msg_id', $msg_id);
return true;
}

?>
----------------------------------------
//the printouts when using test.php

Bad SQL:
INSERT INTO xoops_priv_msgs (msg_id, msg_image, subject, from_userid, to_userid, msg_time, msg_text, read_msg) VALUES (0, 'icon1.gif', 'New App', 1, 1, 1119064960, 'New Text', 0)
Result:!

//the printouts when using PM module
Good SQL:
INSERT INTO xoops_priv_msgs (msg_id, msg_image, subject, from_userid, to_userid, msg_time, msg_text, read_msg) VALUES (0, 'icon1.gif', 'test1', 1, 1, 1119063876, 'test text', 0)

---------------------------------------


Why is this happening?? Can anybody help? How can I get a READABLE DB error msg? Many thanks!



9
whereray
Re: Blank Page After Confirm Database
  • 2005/6/18 3:51

  • whereray

  • Just popping in

  • Posts: 29

  • Since: 2003/4/16


The problem is finally sovled. Just add a folder called "cache" under root directory.

I am wondering why the folder is not created auto by XOOPS install wizard???!!!



10
whereray
Blank Page After Confirm Database
  • 2005/4/6 15:56

  • whereray

  • Just popping in

  • Posts: 29

  • Since: 2003/4/16


My config is Win2003+PHP5+Xoops2.03. Everything is fine untill I confirm database setting, a blank page comes out. I have tried blank page FAQhttps://xoops.org/modules/smartfaq/faq.php?faqid=80 , but it doesn't help. No error msg at all. I've already tried 2 different MySQL servers, all failed. But the connections are good when using MySQL client.

I suspect this is caused by IIS6's security policy, or the php driver????

Help!




TopTop
(1) 2 3 »



Login

Who's Online

200 user(s) are online (138 user(s) are browsing Support Forums)


Members: 1


Guests: 199


Farell,

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