Announcement

Collapse
No announcement yet.

Speicherproblem durch weblogic.security.auth.login.PasswordCredential

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Speicherproblem durch weblogic.security.auth.login.PasswordCredential

    Hallo,

    Es liegt folgendes Szenario vor:
    Von einem Tomcat 6.0.20 werden EJB's von einem Weblogic 10 mp2 abgerufen. Das erfolgt durch folgenden InitialContext-Aufruf:

    Code:
     EJBHome home = null;
    
        try
        {
          Properties initialContextProperties = new Properties();
    
          initialContextProps.put(InitialContext.INITIAL_CONTEXT_FACTORY, initialContextFactory);
          initialContextProps.put(InitialContext.SECURITY_PRINCIPAL, username);
          initialContextProps.put(InitialContext.SECURITY_CREDENTIALS, password);
          initialContextProps.put(InitialContext.PROVIDER_URL, url);
    
          initialContext = new InitialContext(initialContextProps);
    
          Object objref = this.initialContext.lookup(jndiHomeName);
          home = (EJBHome) PortableRemoteObject.narrow(objref, narrowClass);
        }
        finally
        {
          if ( initialContext != null )
            try
            {
              initialContext.close();
            }
            catch(Throwable t)
            {
            }
        }
        return home;
    Das Problem ist, dass nach einem Massentest auf dem Tomcat mit Xmx=256MB 200MB mit 1.500.000 Instanzen folgender Klassen belegt sind:
    Code:
    weblogic.security.auth.login.PasswordCredential
    Hat jemand eine Idee, wie diese Objekte aus dem Speicher entfernt werden können? Ist das vielleicht ein bekanntes Problem, zu dem es bereits einen Patch gibt?

    Gruß
    sebbay
Working...
X