Strange PermGen out of memory error - Shib IdP V3

Stefan Santesson stefan at aaa-sec.com
Tue Jul 14 10:29:10 EDT 2015


Thanks,

That solved the issue. Stable as a rock through my load test as well.

/Stefan

From:  users <users-bounces at shibboleth.net> on behalf of Daniel Fisher
<dfisher at vt.edu>
Reply-To:  Shib Users <users at shibboleth.net>
Date:  Tuesday 14 July 2015 16:04
To:  Shib Users <users at shibboleth.net>
Subject:  Re: Strange PermGen out of memory error - Shib IdP V3

> On Tue, Jul 14, 2015 at 9:43 AM, Stefan Santesson <stefan at aaa-sec.com> wrote:
>> I tried to change to BeanManagedConnection.
>> 
>> I used the example from the Wiki:
>> https://wiki.shibboleth.net/confluence/display/IDP30/BeanManagedConnection
>> 
>> I had to add commons-dbcp-1.4.jar to the lib.
>> I added the bean declaration in global.xml.
>> 
>> I get an error trying to start the IdP, saying that the drivarClass
>> property is not writable:
>> 
>> Caused by: org.springframework.beans.NotWritablePropertyException: Invalid
>> property 'driverClass' of bean class
>> [org.apache.commons.dbcp.BasicDataSource]: Bean property 'driverClass' is
>> not writable or has an invalid setter method. Does the parameter type of
>> the setter match the return type of the getter?
> 
> That looks like a typo in the docs. Try using this instead:
> 
> <bean id="MyDataSource" class="org.apache.commons.dbcp.BasicDataSource"
> destroy-method="close"
>     p:driverClassName="%{datasource.driverClass}"
>     p:url="%{datasource.jdbcUrl}" p:username="%{datasource.user}"
> p:password="%{datasource.password}"
>     p:maxActive="10" p:maxIdle="5" p:maxWait="2000" p:testOnBorrow="true"
>     p:validationQuery="select 1" p:validationQueryTimeout="5" />
> 
> --Daniel Fisher
> 
> -- To unsubscribe from this list send an email to
> users-unsubscribe at shibboleth.net


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20150714/b7d1e0bf/attachment.html>


More information about the users mailing list