R: Re: [Pljava-dev] crash due to huge load?

From: thomas at tada(dot)se (Thomas Hallgren)
To:
Subject: R: Re: [Pljava-dev] crash due to huge load?
Date: 2005-10-29 08:35:54
Message-ID: 4363346A.4000503@tada.se
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pljava-dev


rcolmegna at tiscali.it wrote:
> Thomas,
>
> thanks for your reply. Sorry but I would disagree with your hipotesys
> about Log4J: I have used it without any problem (in PLJava Trigger).
>
> The evidence is the fact that if I use my PLJ/Trigger a lot of time (the
> same .SQL
> script execute, via PSQL, 20 times), without complex-thread behaviour, the
>
> Log4J logs are correctly produced.
>
>
Yes of course log4j will produce output. That's not what I meant. What I
mean is that:
- the java.util.logging package is well integrated with the PostgreSQL
backend and you can control it using the log_min_messages,
client_min_messages etc. in the postgresql.conf.
- the output will not conflict with the output from the PostgreSQL
logger since one uses the other.
- by setting client_min_messages, you can actually propagate logging to
the client.
- the java.util.logging does pretty much the same tasks as the log4j
logger so you have a lot of redundant code in your backend for no
apparent reason.
- if you want log4j to output to a file, you must use the untrusted
language handler, the trusted handler will not allow log4j to open a file.

> But if I enable complex-thread behaviour the pgsrv crash at the
> second psql-session execution.
>
>
Again, please send the backend log. If you don't want to disclose the
content on this mailing list, send it to me directly.

Regards,
Thomas Hallgren

In response to

Browse pljava-dev by date

  From Date Subject
Next Message rcolmegna at tiscali.it 2005-10-29 08:43:29 R: Re: [Pljava-dev] crash due to huge load?
Previous Message Thomas Hallgren 2005-10-29 08:26:39 [Pljava-dev] crash due to huge load?