[JBoss JIRA] Created: (JBMICROCONT-213) Unwrap MetaValue in MetaValueFactory
by Ales Justin (JIRA)
Unwrap MetaValue in MetaValueFactory
------------------------------------
Key: JBMICROCONT-213
URL: http://jira.jboss.com/jira/browse/JBMICROCONT-213
Project: JBoss MicroContainer
Issue Type: Feature Request
Components: General
Affects Versions: JBossMC-2.0.0.Beta5
Reporter: Ales Justin
Assigned To: Ales Justin
Priority: Minor
Fix For: JBossMC-2.0.0.Beta5
Add a way to get the initial value from which you created the MetaValue - unwrapping the MetaValue in MetaValueFactory.
/**
* Unwrap meta value.
* Supports simple and generic meta value.
*
* @param metaValue meta value
* @return meta value's value
*/
public abstract Object unwrap(MetaValue metaValue);
/**
* Unwrap meta value.
* Supports simple and generic meta value.
*
* @param metaValue meta value
* @param type the type
* @return meta value's value
*/
public abstract Object unwrap(MetaValue metaValue, Type type);
/**
* Unwrap meta value.
* Supports simple and generic meta value.
*
* @param metaValue meta value
* @param type the type
* @return meta value's value
*/
public abstract Object unwrap(MetaValue metaValue, TypeInfo type);
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 11 months
[JBoss JIRA] Commented: (JBAS-3012) MemoryLeak in JaasSecurityManager::DomainInfo
by joshmoore (JIRA)
[ http://jira.jboss.com/jira/browse/JBAS-3012?page=comments#action_12384499 ]
joshmoore commented on JBAS-3012:
---------------------------------
Scott, could you clarify what you think the cause is here? We are running into this as well. A long running server had over 100K login modules plus 400K SimplePrincipals and 100K SecurityAssociationHandlers, SimpleGroups, etc. which eventually brought it to its knees. I've posted a screen shot from jprofiler at https://trac.openmicroscopy.org.uk/omero/ticket/818 , and confirmed that calling DynamicLoginConfig's flushAuthenticationCaches does free almost everything up. Not, however, the SecurityAssociation$SubjectContext instances. I'm still looking into that.
My planned work-around is to periodically call flushAuthenticationCaches. Any thoughts?
Many thanks,
Josh Moore
Glencoe Software, Inc.
The Open Microscopy Environment
From: jboss-service.xml
<mbean code="org.jboss.security.auth.login.DynamicLoginConfig"
name="omero:service=LoginConfig">
<attribute name="AuthConfig">META-INF/jboss-login.xml</attribute>
<depends optional-attribute-name="LoginConfigService">
jboss.security:service=XMLLoginConfig
</depends>
<depends optional-attribute-name="SecurityManagerService">
jboss.security:service=JaasSecurityManager
</depends>
</mbean>
From: jboss-login.xml
<policy>
<application-policy name="OmeroSecurity">
<authentication>
<login-module code = "ome.security.JBossLoginModule" flag = "required">
<module-option name = "unauthenticatedIdentity">guest</module-option>
<module-option name = "dsJndiName">java:/omeroDS</module-option>
<module-option name = "hashAlgorithm">MD5</module-option>
> MemoryLeak in JaasSecurityManager::DomainInfo
> ---------------------------------------------
>
> Key: JBAS-3012
> URL: http://jira.jboss.com/jira/browse/JBAS-3012
> Project: JBoss Application Server
> Issue Type: Sub-task
> Security Level: Public(Everyone can see)
> Components: Security
> Reporter: Adrian Brock
> Assigned To: Scott M Stark
> Fix For: No Release
>
>
> There is a memory leak caused by the JaasSecurityManager::DomainInfo
> holding a reference to the LoginContext.
> Internally, this holds a reference to the context classloader.
> If this information is cached and then the classloader undeployed,
> the classloader and all associated classes/proxies/static data
> don't get garbage collected until this information is flushed.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 11 months