Hello Ulrich,

2015-09-15 17:19 GMT+02:00 Ulrich Leodolter <ulrich.leodol...@obvsg.at>:
> Hello Marcin,
>
> On Tue, 2015-09-15 at 17:02 +0200, Marcin Haba wrote:
>> Hello Ulrich,
>>
>> Thank you for your patch.
>>
>> Could you describe what is the problem with bconsole access that you
>> mentioned? I will try to reproduce the issue, but so far I have not
>> experienced Baculum problem with bconsole. Your bug description and
>> system environment parameters will be precious information for me.
>>
>
> the apache /var/log/httpd/error_log shows the following warning:
> sh: line 3: warning: here-document at line 0 delimited by end-of-file (wanted 
> `END_OF_DATA')
>
> the warning is gone with my patch, it's only a warning but i think it should 
> be fixed.

OK, now I am seeing the issue. I agree with you that it should be
fixed. Thanks again for your fix.

> i do have other issues with baculum which is very memory hungry.
> in /etc/php.ini i have raised memory_limit to 2G which is still not enough
> for our installation.
>
> [Tue Sep 15 17:08:33.471993 2015] [:error] [pid 30559] [client 
> 192.168.3.58:48906] PHP Fatal error:  Allowed memory size of 2122317824 bytes 
> exhausted (tried to allocate 49737772 bytes) in 
> /var/www/html/baculum/framework/Web/THttpSession.php on line 144, referer: 
> http://prisma.obvsg.at/baculum/
>
> our bacula installation has about 137244 finisched jobs,
> more than 100 configured jobs and clients.
>
> we are running bacula on CentOS Linux release 7.1.1503 (Core), x86_64
> compiled from git Branch-7.2.
>
> do you have an tips to limit baculum resources ?
> the old bweb from 5.2 does not have any problems with our setup.

Baculum from bacula-gui-7.0.5 archive had a problem with lots of
memory consumption when there exist lots of elements (Jobs or Media or
Clients...) to show.

Baculum from  branch 7.2 has been optimized also from memory usage
side. Your error with allowed memory exchausted indicates that
probably you use Baculum 7.0.5 or Git snapshot from Branch-7.0 before
optimizations. Now for about 2000 elements show I use 256M memory
limit in php.ini.

My tips for make Baculum less memory "hungry" is:

- use Baculum 7.2.0 from official tar.gz archive (if you have not
tried yet) or more comfortable from binary packages 7.2.0 for CentOS 7
(installation is described here
https://adsm.org/lists/html/Bacula-users/2015-08/msg00178.html ).
- use elements limits from configuration windows toolbar (for example
to last 1000 or more). Default value is unlimitted. The value is
remembered.
- disable logging to file (if enabled), or enable logging only if needed.

I am very interested in memory usage by PHP in your environment after
applying above points. I will appreciate your feedback after changes
apply.

Best regards.
Marcin Haba (gani)

> Best regards
> Ulrich
>
>
>
>> Thank you in advance for these information.
>> > Best regards.
>> Marcin Haba (gani)
>> > 2015-09-15 16:17 GMT+02:00 Ulrich Leodolter <
>> ulrich.leodol...@obvsg.at>:
>> > Hi,
>> >
>> > here is my patch which fixes a baculum console problem.
>> >
>> > ---cut---
>> > diff --git a/gui/baculum/protected/Class/Bconsole.php
>> > b/gui/baculum/protected/Class/Bconsole.php
>> > index 89113d0..d26c508 100644
>> > --- a/gui/baculum/protected/Class/Bconsole.php
>> > +++ b/gui/baculum/protected/Class/Bconsole.php
>> > @@ -28,7 +28,7 @@ class Bconsole extends TModule {
>> >
>> >         const SUDO = 'sudo';
>> >
>> > -       const BCONSOLE_COMMAND_PATTERN = "%s%s -c %s %s
>> > <<END_OF_DATA\n%s\nquit\n<<END_OF_DATA";
>> > +       const BCONSOLE_COMMAND_PATTERN = "%s%s -c %s %s
>> > <<END_OF_DATA\n%s\nquit\nEND_OF_DATA";
>> >
>> >         const BCONSOLE_DIRECTORS_PATTERN = "%s%s -c %s -l";
>> >
>> > ---cut---
>> >
>> >
>> > Best regards
>> > Ulrich
>> > --
>> > Ulrich Leodolter <ulrich.leodol...@obvsg.at>
>> > Oesterreichische Bibliothekenverbund und Service GmbH
>> > Raimundgasse 1/3, A-1020 Wien
>> > Fax +43 1 4035158-30
>> > Tel +43 1 4035158-21
>> > Web http://www.obvsg.at
>> >
>> >
>> >
>> >
>> > -------------------------------------------------------------------
>> > -----------
>> > _______________________________________________
>> > Bacula-devel mailing list
>> > Bacula-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/bacula-devel
>> >



-- 
"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie
za przyjaciół swoich." Jezus Chrystus

------------------------------------------------------------------------------
_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to