From: | thhal at mailblocks(dot)com (Thomas Hallgren) |
---|---|
To: | |
Subject: | [Pljava-dev] Re: Failed to create Java VM |
Date: | 2005-03-15 15:55:42 |
Message-ID: | thhal-0Ap4SA2HXxyc3IIhQ4l9cfcucza7ulU@mailblocks.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pljava-dev |
Bruno Domenici Ferreira wrote:
> Thomas, i've installed pljava by the source and the error now is:
>
> ERROR: attempt to redefine parameter "pljava.vmoptions"
>
> See my postgresql.conf
>
> <cut>
> # define "pljava" as a custom variable class. This is a comma separated
> # list of names.
> #
> custom_variable_classes = 'pljava'
>
> # define the class path that the JVM will use when loading the
> # initial library. Only meaningful for non GJC installations
> #
> pljava.classpath = '/downloads/pljava-1.1.0b1/build/pljava.jar'
> pljava.classpath = '/usr/local/pgsql8/lib/postgresql.jar'
>
> # Set the size of the prepared statement MRU cache
> #
> pljava.statement_cache_size = '1'
>
> # If true, lingering savepoints will be released on function exit. If
> false,
> # the will be rolled back
> #
> #pljava.release_lingering_savepoints = true
>
> # Define startup options for the Java VM.
> #
> pljava.vmoptions = '-Xmx64M -Dbackchannel.port=48'
>
> # Setting debug to true will cause the postgres process to go
> # into a sleep(1) loop on its first call to java. This is
> # only useful if you want to debug the PL/Java internal C code.
> #
> pljava.debug = true
> </cut>
>
When do you get this error? Are you trying to do use the SQL SET command
for pljava.vmoptions in a session where PL/Java is already active?
There's no way you can get it from settings in the postgresql.conf file
since that file will allow multiple settings of the same custom variable
(if it didn't you'd get this error for pljava.classpath since you set
that twice).
Be adviced that numeric custom variables are broken at the moment. Thus,
you will not be able to set the pljava.statement_cache_size.
Regards,
Thomas Hallgren
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Hallgren | 2005-03-15 17:58:49 | [Pljava-dev] Re: Failed to create Java VM |
Previous Message | Bruno Domenici Ferreira | 2005-03-15 14:27:16 | [Pljava-dev] Failed to create Java VM |