Tiger66639 / xinc

Automatically exported from code.google.com/p/xinc
0 stars 0 forks source link

Memory Exhausted #107

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
sudo /usr/bin/xinc -f /etc/xinc/system.xml -p /etc/xinc/plugins.xml -s
/var/xinc/status -l /var/log/xinc.log /etc/xinc/conf.d/codeeight.xml

PHP Fatal error:  Allowed memory size of 209715200 bytes exhausted (tried
to allocate 8388608 bytes) in /usr/share/pear/Xinc/Logger.php on line 253

Fatal error: Allowed memory size of 209715200 bytes exhausted (tried to
allocate 8388608 bytes) in /usr/share/pear/Xinc/Logger.php on line 253

Original issue reported on code.google.com by InAweof...@gmail.com on 2 Feb 2008 at 5:59

GoogleCodeExporter commented 9 years ago
Hello, thanks for the report.

Which version are you using? This issue was detected in a previous version.

Please copy the lines 240-260 of Xinc/Logger.php in here.

Thanks,
Arno

Original comment by arnos...@gmail.com on 2 Feb 2008 at 10:46

GoogleCodeExporter commented 9 years ago
Please also try to use the pear channel or pear package for installation.

See http://code.google.com/p/xinc/wiki/InstallXincFromPearChannel

Original comment by arnos...@gmail.com on 2 Feb 2008 at 10:48

GoogleCodeExporter commented 9 years ago
sudo /usr/bin/xinc -f /etc/xinc/system.xml -p /etc/xinc/plugins.xml -s
/var/xinc/status -l /var/log/xinc.log /etc/xinc/conf.d/codeeight.xml

"-p /etc/xinc/plugins.xml": thats a alpha version of Xinc.

install using:

pear install http://xinc.eu/api/artifacts/get/json/xinc/latest/Xinc-2.0.0b82.tgz

Please tell me if the error is still there, after upgrading to the latest 
version.

Thanks

Original comment by arnos...@gmail.com on 2 Feb 2008 at 10:53

GoogleCodeExporter commented 9 years ago
I had installed with "pear install xinc/Xinc-beta". Pear said it was b82. I
uninstalled, and reinstalled. Same issue.

[tjsingleton@codeeight ~]$ sudo /usr/bin/xinc -f /etc/xinc/system.xml -p
/etc/xinc/plugins.xml -s /var/xinc/status -l /var/log/xinc.log
/etc/xinc/conf.d/codeeight.xml
PHP Fatal error:  Allowed memory size of 209715200 bytes exhausted (tried to 
allocate
35 bytes) in /usr/share/pear/Xinc/Logger.php on line 253

Fatal error: Allowed memory size of 209715200 bytes exhausted (tried to 
allocate 35
bytes) in /usr/share/pear/Xinc/Logger.php on line 253
PHP Fatal error:  Allowed memory size of 209715200 bytes exhausted (tried to 
allocate
40 bytes) in /usr/share/pear/Xinc/Engine/Sunrise.php on line 68

Fatal error: Allowed memory size of 209715200 bytes exhausted (tried to 
allocate 40
bytes) in /usr/share/pear/Xinc/Engine/Sunrise.php on line 68

Also, the daemon won't run. I figure the errors are related.

All this said, and it had successfully executed before, http://ci.codeeight.net

Original comment by InAweof...@gmail.com on 2 Feb 2008 at 5:42

GoogleCodeExporter commented 9 years ago
Can you please start using 

sudo /etc/init.d/xinc start ?

Can you please copy&paste the Lines 240-260 of Xinc/Logger.php and Lines 60-80 
of
Xinc/Engine/Sunrise.php here?

Thanks

Original comment by arnos...@gmail.com on 2 Feb 2008 at 5:51

GoogleCodeExporter commented 9 years ago
Just for some technical info I'm on a MediaTemple DV. I've upgrade the to php5: 
$ php -v
PHP 5.1.6 (cli) (built: Oct 26 2007 13:49:00)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

That said I realize that there is 5.2.4 and will get my php upgraded as well.

What is the suggested memory limit I should specify in the php.ini. I moved it 
up to
200M just to see if I could get a success. 

Original comment by InAweof...@gmail.com on 2 Feb 2008 at 5:55

GoogleCodeExporter commented 9 years ago
[tjsingleton@codeeight ~]$ sudo /etc/init.d/xinc start
Starting Xinc - Continuous Integration for PHP:Xinc already running
[tjsingleton@codeeight ~]$ sudo /etc/init.d/xinc status
Status of Xinc - Continuous Integration for PHP: xinc is not running but
/var/xinc/status/xinc.pid exists.
[tjsingleton@codeeight ~]$ sudo rm /var/xinc/status/xinc.pid
[tjsingleton@codeeight ~]$ sudo /etc/init.d/xinc start
Starting Xinc - Continuous Integration for PHP/etc/init.d/xinc: Usage: daemon
[+/-nicelevel] {program}

[tjsingleton@codeeight ~]$ sudo /etc/init.d/xinc status
Status of Xinc - Continuous Integration for PHP: xinc is not running.
[tjsingleton@codeeight ~]$

Original comment by InAweof...@gmail.com on 2 Feb 2008 at 5:59

GoogleCodeExporter commented 9 years ago
The memory should not be an issue. Although I dont know how big the project is 
you
are trying to build.

Would help first to make sure that we are talking about the same version of 
xinc.
Next would be to have a look at your project file.
And the way you start xinc is an old command which is not valid anymore, try to 
use
the init-script in /etc/init.d/xinc.

And if you could paste me the lines of Xinc_Logger and Xinc_Engine_Sunrise?

Original comment by arnos...@gmail.com on 2 Feb 2008 at 5:59

GoogleCodeExporter commented 9 years ago
try to start it like this:

sudo /usr/bin/xinc -f /etc/xinc/system.xml -p /var/xinc/projects/ -w
/var/xinc/projects/ -l /var/log/xinc.log -s /var/xinc/status -v 0
/etc/xinc/conf.d/codeeight.xml

Original comment by arnos...@gmail.com on 2 Feb 2008 at 6:02

GoogleCodeExporter commented 9 years ago
Logger.php
===================start on 240
            $messageString .= htmlentities(utf8_encode($message->message));
            $messageString .= '</message>';

            $messageElements[] = $messageString;
        }

        $previousLogMessages = '';

        $dirName = dirname($this->_buildLogFile);
        if (!file_exists($dirName)) {
            mkdir($dirName, 0755, true);

        } else if (file_exists($this->_buildLogFile)) {
            $previousLogMessagesArr = file($this->_buildLogFile);
            array_shift($previousLogMessagesArr);
            array_shift($previousLogMessagesArr);
            array_pop($previousLogMessagesArr);
            $previousLogMessages = implode("\n", $previousLogMessagesArr);
        }

        $buildXml  = '<?xml version="1.0"?>';
===================start end on 260

Sunrise.php 
===================start start on 60
     * serializes the build before shutting down
     *
     */
    public function shutdown()
    {
        if ($this->build != null) {
            $this->build->serialize();
        }
    }

    /**
     * Process a build
     *
     * @param Xinc_Build_Interface $build
     */
    public function build(Xinc_Build_Interface &$build)
    {
        $this->build=$build;
        $buildTime = time();
        $startTime = time() + microtime(true);
        $build->setBuildTime($buildTime);
===================start end on 280

Original comment by InAweof...@gmail.com on 2 Feb 2008 at 6:04

Attachments:

GoogleCodeExporter commented 9 years ago
[tjsingleton@codeeight ~]$ sudo /usr/bin/xinc -f /etc/xinc/system.xml -p
/var/xinc/projects/ -w /var/xinc/projects/ -l /var/log/xinc.log -s 
/var/xinc/status
-v 0 /etc/xinc/conf.d/codeeight.xml
 [info]   [2008-02-02 18:06:36] Setting loglevel to 0
 [info]   [2008-02-02 18:06:36] Starting up Xinc
 [info]   [2008-02-02 18:06:36] - Workingdir:         /var/xinc/projects/
 [info]   [2008-02-02 18:06:36] - Projectdir:         /var/xinc/projects/
 [info]   [2008-02-02 18:06:36] - Statusdir:          /var/xinc/status
 [info]   [2008-02-02 18:06:36] - System Config File: /etc/xinc/system.xml
 [info]   [2008-02-02 18:06:36] - Log Level:          0
 [info]   [2008-02-02 18:06:36] - Daemon:             yes
 [verbose]  [2008-02-02 18:06:36] Setting workingdir: /var/xinc/projects
 [verbose]  [2008-02-02 18:06:36] Setting projectdir: /var/xinc/projects
 [verbose]  [2008-02-02 18:06:36] Setting statusdir: /var/xinc/status
 [info]   [2008-02-02 18:06:36] Loading Project-File: /etc/xinc/conf.d/codeeight.xml
 [debug]  [2008-02-02 18:06:36] Registering Subtask:
Xinc_Plugin_Repos_Publisher_Email_Task
 [debug]  [2008-02-02 18:06:36] Registering Publisher:
Xinc_Plugin_Repos_Publisher_OnSuccess_Task
 [debug]  [2008-02-02 18:06:36] Registering Subtask:
Xinc_Plugin_Repos_Publisher_Email_Task
 [debug]  [2008-02-02 18:06:36] Registering Publisher:
Xinc_Plugin_Repos_Publisher_OnRecovery_Task
 [debug]  [2008-02-02 18:06:36] Registering Subtask:
Xinc_Plugin_Repos_Publisher_Email_Task
 [debug]  [2008-02-02 18:06:36] Registering Publisher:
Xinc_Plugin_Repos_Publisher_OnFailure_Task
 [info]   [2008-02-02 18:06:36] Registering shutdown function: OK
 [debug]  [2008-02-02 18:06:36] [build] Code Eight: getNextBuildTime : lastbuild:
2008-02-01 22:04:42 nextbuild: 2008-02-02 18:06:36
 [debug]  [2008-02-02 18:06:36] [build] Code Eight: getNextBuildTime : lastbuild:
2008-02-01 22:04:42 nextbuild: 2008-02-02 18:06:36
 [info]   [2008-02-02 18:06:36] Next buildtime: 2008-02-02 18:06:36
 [debug]  [2008-02-02 18:06:36] [build] Code Eight: getNextBuildTime : lastbuild:
2008-02-01 22:04:42 nextbuild: 2008-02-02 18:06:36
 [info]   [2008-02-02 18:06:36] Processing task: schedule
 [info]   [2008-02-02 18:06:36] CHECKING PROJECT Code Eight
 [info]   [2008-02-02 18:06:36] Processing task: modificationset
 [info]   [2008-02-02 18:06:36] [build] Code Eight: Subversion checkout dir is
/var/svn/repos/repo.codeeight.net local revision @ 1 Remote Revision @ 3
 [info]   [2008-02-02 18:06:36] [build] Code Eight: Code not up to date, building project
 [info]   [2008-02-02 18:06:36] Processing task: builders
 [info]   [2008-02-02 18:06:36] [build] Code Eight: Processing builders
 [info]   [2008-02-02 18:06:44] Phing version 2.3.0
 [info]   [2008-02-02 18:06:44] Buildfile: /var/xinc/projects/code8/build.xml
 [info]   [2008-02-02 18:06:44] Override ignored for user property phing.file
 [info]   [2008-02-02 18:06:44] parsing buildfile build.xml
 [info]   [2008-02-02 18:06:44] Project base dir set to: /var/xinc/projects/code8
 [info]   [2008-02-02 18:06:44] [PHP Error] Assigning the return value of new by
reference is deprecated [line 451 of /usr/share/pear/VersionControl/SVN.php]
 [info]   [2008-02-02 18:06:44] [PHP Error] Non-static method
PEAR_ErrorStack::singleton() should not be called statically, assuming $this 
from
incompatible context [line 983 of /usr/share/pear/PEAR/ErrorStack.php]
 [info]   [2008-02-02 18:06:44] Build sequence for target 'build' is: prepare build
 [info]   [2008-02-02 18:06:44] Complete build sequence is: prepare build test
 [info]   [2008-02-02 18:06:44]
 [info]   [2008-02-02 18:06:44] Code8 > prepare:
 [info]   [2008-02-02 18:06:44]
 [info]   [2008-02-02 18:06:44]      [echo] Rebuilding domain...
 [info]   [2008-02-02 18:06:44]    [delete] Deleting directory
/var/www/vhosts/codeeight.net/subdomains/build/httpdocs
 [info]   [2008-02-02 18:06:44]    [delete] Deleting
/var/www/vhosts/codeeight.net/subdomains/build/httpdocs/docs/COPYING.txt
 [info]   [2008-02-02 18:06:44]    [delete] Deleting
/var/www/vhosts/codeeight.net/subdomains/build/httpdocs/docs/README.txt
 [info]   [2008-02-02 18:06:44]    [delete] Deleting
/var/www/vhosts/codeeight.net/subdomains/build/httpdocs/docs/CHANGELOG.txt
 [info]   [2008-02-02 18:06:44]    [delete] Deleting directory
/var/www/vhosts/codeeight.net/subdomains/build/httpdocs/docs
 [info]   [2008-02-02 18:06:44]    [delete] Deleting
/var/www/vhosts/codeeight.net/subdomains/build/httpdocs/.htaccess
 [info]   [2008-02-02 18:06:44]    [delete] Deleting
/var/www/vhosts/codeeight.net/subdomains/build/httpdocs/cake/config/unicode/case
folding/0300_036f.php
 [info]   [2008-02-02 18:06:44]    [delete] Deleting
/var/www/vhosts/codeeight.net/subdomains/build/httpdocs/cake/config/unicode/case
folding/0370_03ff.php
 [info]   [2008-02-02 18:06:44]    [delete] Deleting
/var/www/vhosts/codeeight.net/subdomains/build/httpdocs/cake/config/unicode/case
folding/2150_218f.php
 [info]   [2008-02-02 18:06:44]    [delete] Deleting
/var/www/vhosts/codeeight.net/subdomains/build/httpdocs/cake/config/unicode/case
folding/0400_04ff.php
 [info]   [2008-02-02 18:06:44]    [delete] Deleting
/var/www/vhosts/codeeight.net/subdomains/build/httpdocs/cake/config/unicode/case
folding/2100_214f.php
 [info]   [2008-02-02 18:06:44]    [delete] Deleting
/var/www/vhosts/codeeight.net/subdomains/build/httpdocs/cake/config/unicode/case
folding/1f00_1fff.php
 [info]   [2008-02-02 18:06:44]    [delete] Deleting
/var/www/vhosts/codeeight.net/subdomains/build/httpdocs/cake/config/unicode/case
folding/0100_017f.php
 [info]   [2008-02-02 18:06:44]    [delete] Deleting
/var/www/vhosts/codeeight.net/subdomains/build/httpdocs/cake/config/unicode/case
folding/10400_1044f.php
 [info]   [2008-02-02 18:06:44]    [delete] Deleting
/var/www/vhosts/codeeight.net/subdomains/build/httpdocs/cake/config/unicode/case
folding/2c00_2c5f.php
 [info]   [2008-02-02 18:06:44]    [delete] Deleting
/var/www/vhosts/codeeight.net/subdomains/build/httpdocs/cake/config/unicode/case
folding/fb00_fb4f.php
 [info]   [2008-02-02 18:06:44]    [delete] Deleting
/var/www/vhosts/codeeight.net/subdomains/build/httpdocs/cake/config/unicode/case
folding/0080_00ff.php
 [info]   [2008-02-02 18:06:44]    [delete] Deleting
/var/www/vhosts/codeeight.net/subdomains/build/httpdocs/cake/config/unicode/case
folding/10a0_10ff.php
 [info]   [2008-02-02 18:06:44]    [delete] Deleting
/var/www/vhosts/codeeight.net/subdomains/build/httpdocs/cake/config/unicode/case
folding/2460_24ff.php
 [info]   [2008-02-02 18:06:44]    [delete] Deleting
/var/www/vhosts/codeeight.net/subdomains/build/httpdocs/cake/config/unicode/case
folding/0500_052f.php
 [info]   [2008-02-02 18:06:44]    [delete] Deleting
/var/www/vhosts/codeeight.net/subdomains/build/httpdocs/cake/config/unicode/case
folding/ff00_ffef.php
 [info]   [2008-02-02 18:06:44]    [delete] Deleting
/var/www/vhosts/codeeight.net/subdomains/build/httpdocs/cake/config/unicode/case
folding/2c80_2cff.php
 [info]   [2008-02-02 18:06:44]    [delete] Deleting
/var/www/vhosts/codeeight.net/subdomains/build/httpdocs/cake/config/unicode/case
folding/0530_058f.php
 [info]   [2008-02-02 18:06:44]    [delete] Deleting
/var/www/vhosts/codeeight.net/subdomains/build/httpdocs/cake/config/unicode/case
folding/1e00_1eff.php
 [info]   [2008-02-02 18:06:44]    [delete] Deleting
/var/www/vhosts/codeeight.net/subdomains/build/httpdocs/cake/config/unicode/case
folding/0180_024F.php
 [info]   [2008-02-02 18:06:44]    [delete] Deleting
/var/www/vhosts/codeeight.net/subdomains/build/httpdocs/cake/config/unicode/case
folding/0000_007f.php
 [info]   [2008-02-02 18:06:44]    [delete] Deleting
/var/www/vhosts/codeeight.net/subdomains/build/httpdocs/cake/config/unicode/case
folding/2c60_2c7f.php
 [info]   [2008-02-02 18:06:44]    [delete] Deleting directory
/var/www/vhosts/codeeight.net/subdomains/build/httpdocs/cake/config/unicode/case
folding
 [info]   [2008-02-02 18:06:44]    [delete] Deleting directory
/var/www/vhosts/codeeight.net/subdomains/build/httpdocs/cake/config/unicode
 [info]   [2008-02-02 18:06:44]    [delete] Deleting
/var/www/vhosts/codeeight.net/subdomains/build/httpdocs/cake/config/config.php
 [info]   [2008-02-02 18:06:44]    [delete] Deleting
/var/www/vhosts/codeeight.net/subdomains/build/httpdocs/cake/config/paths.php
PHP Fatal error:  Allowed memory size of 209715200 bytes exhausted (tried to 
allocate
8388608  in /usr/share/pear/Xinc/Logger.php on line 253

Fatal error: Allowed memory size of 209715200 bytes exhausted (tried to allocate
8388608  in /usr/share/pear/Xinc/Logger.php on line 253

Original comment by InAweof...@gmail.com on 2 Feb 2008 at 6:07

GoogleCodeExporter commented 9 years ago
I've attached my config file. Is there anyway to specify login credentials for 
svn?

Original comment by InAweof...@gmail.com on 2 Feb 2008 at 6:14

Attachments:

GoogleCodeExporter commented 9 years ago
ls -lh /var/xinc/status/code8/buildlog.xml

Original comment by arnos...@gmail.com on 2 Feb 2008 at 6:15

GoogleCodeExporter commented 9 years ago
Pls replace your Xinc/Build.php with the following file and start using the 
sudo cmd
I have sent you earlier with "-v 0"

Original comment by arnos...@gmail.com on 2 Feb 2008 at 6:25

Attachments:

GoogleCodeExporter commented 9 years ago
Also pls send me the result of the following:

ls -l /var/xinc/status/.shutdown

Thanks

Original comment by arnos...@gmail.com on 2 Feb 2008 at 6:34

GoogleCodeExporter commented 9 years ago
Fatal error: Allowed memory size of 209715200 bytes exhausted (tried to allocate
524288b in /usr/share/pear/Xinc/Logger.php on line 257

Original comment by InAweof...@gmail.com on 2 Feb 2008 at 6:41

Attachments:

GoogleCodeExporter commented 9 years ago
$ ls /var/xinc/status/ -a
.  ..  CodeEight  xinc.pid

No such file.

Original comment by InAweof...@gmail.com on 2 Feb 2008 at 6:45

GoogleCodeExporter commented 9 years ago
[tjsingleton@codeeight home]$ sudo /etc/init.d/xinc start
Starting Xinc - Continuous Integration for PHP:Xinc already running
[tjsingleton@codeeight home]$ ls /var/xinc/status/ -a
.  ..  CodeEight  xinc.pid
[tjsingleton@codeeight home]$ sudo /etc/init.d/xinc restart
Restarting Xinc - Continuous Integration for PHP
Starting Xinc - Continuous Integration for PHP:Xinc already running
[tjsingleton@codeeight home]$ ls /var/xinc/status/ -a
.  ..  .shutdown  CodeEight  xinc.pid
[tjsingleton@codeeight home]$ ls -l /var/xinc/status/.shutdown
-rw-r--r--  1 root root 0 Feb  2 10:48 /var/xinc/status/.shutdown

Original comment by InAweof...@gmail.com on 2 Feb 2008 at 6:50

GoogleCodeExporter commented 9 years ago
Ok,

please replace Xinc/Logger.php with the attached file and try again.BTW thanks 
a lot
for reporting this!! :-)

Thanks

Original comment by arnos...@gmail.com on 2 Feb 2008 at 6:51

Attachments:

GoogleCodeExporter commented 9 years ago
Success. THANKS SO MUCH!

[debug]  [2008-02-02 18:55:58] [build] CodeEight: getNextBuildTime : lastbuild:
2008-02-02 18:55:49 nextbuild: 2008-02-02 18:56:09
 [info]   [2008-02-02 18:55:58] Next buildtime: 2008-02-02 18:56:09
 [info]   [2008-02-02 18:55:58] Sleeping: 11 seconds

http://ci.codeeight.com shows new build

Any thoughts on the daemon not working? Also, is there a way to specify SVN
authentication information in the config. Should I open a new ticket for these 
items?

Again, thanks and Xinc is really cool from what I can tell so far. We are 
excited to
be using it.

Original comment by InAweof...@gmail.com on 2 Feb 2008 at 7:07

GoogleCodeExporter commented 9 years ago
As of now, the svn modificationset only checks a local working copy for updates.

What is the intended use? Please file a ticket describing what you want to do 
and
then I will get back to you.

For the daemon not starting: It is probably a problem with the init-script, 
maybe the
wrong libraries included etc. if you could help me getting the init-script to 
work
with your os, that would be great :-) For that as well, we should create a new 
ticket.

Can you also try out the Xinc_Logger attached here. Trying to reduce the memory 
usage.

Original comment by arnos...@gmail.com on 2 Feb 2008 at 7:13

Attachments:

GoogleCodeExporter commented 9 years ago
Just to give you a heads-up I'm headed out to lunch, I will try it out as soon 
as I
get back.

Original comment by InAweof...@gmail.com on 2 Feb 2008 at 7:16

GoogleCodeExporter commented 9 years ago
Cool,

here is a better version. 

Original comment by arnos...@gmail.com on 2 Feb 2008 at 7:32

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by arnos...@gmail.com on 2 Feb 2008 at 7:35

GoogleCodeExporter commented 9 years ago
In lieu of InAweofHim I have uploaded your new copy of Logger.php to the server

Original comment by Christia...@gmail.com on 2 Feb 2008 at 7:42

GoogleCodeExporter commented 9 years ago
Hello,

you can also catch the latest version here:

pear install http://xinc.eu/api/artifacts/get/json/xinc/latest/Xinc-2.0.0b83.tgz

Original comment by arnos...@gmail.com on 2 Feb 2008 at 7:49

GoogleCodeExporter commented 9 years ago
For the init-script,

you are using CentOS?

Can you send me the /etc/rc.d/init.d/functions file?

So I can have a look how init-scripts are programmed?

THanks

Original comment by arnos...@gmail.com on 2 Feb 2008 at 7:56

GoogleCodeExporter commented 9 years ago
Sure I will open a new ticket regarding the init.d issue

Original comment by Christia...@gmail.com on 2 Feb 2008 at 8:05

GoogleCodeExporter commented 9 years ago
Please install latest version and verify if fix works.

Thx.

Original comment by arnos...@gmail.com on 2 Feb 2008 at 8:08

GoogleCodeExporter commented 9 years ago
Installed and Verified

Original comment by Christia...@gmail.com on 2 Feb 2008 at 8:14

GoogleCodeExporter commented 9 years ago
thx for your help

Original comment by arnos...@gmail.com on 2 Feb 2008 at 8:31