[jira] [Commented] (DIRSERVER-2340) Error causes permanent unresponsivenes
[ https://issues.apache.org/jira/browse/DIRSERVER-2340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17298688#comment-17298688 ] Andrea Campana commented on DIRSERVER-2340: --- After applying the parameters on the stack you suggested it did not happen any longer. Many thanks for your help! > Error causes permanent unresponsivenes > --- > > Key: DIRSERVER-2340 > URL: https://issues.apache.org/jira/browse/DIRSERVER-2340 > Project: Directory ApacheDS > Issue Type: Bug >Affects Versions: 2.0.0.AM26 > Environment: Apache DS 2.0.0 AM 26 running over RHEL 7.8 and Oracle > JDK 1.8.0_241-b07. >Reporter: Andrea Campana >Priority: Major > > Hi, I've been using ApacheDS since version 1.5, and I'm running into this > issue: the system runs ok for days, or weeks, until I get this error in the > logs: > > {code:java} > [20:00:03] WARN [org.apache.directory.server.ldap.LdapProtocolHandler] - > Unexpected exception forcing session to close: sending disconnect notice to > client. > java.lang.StackOverflowError > at > org.apache.directory.api.ldap.codec.factory.SearchResultEntryFactory.encodeValues(SearchResultEntryFactory.java:66) > at > org.apache.directory.api.ldap.codec.factory.SearchResultEntryFactory.encodeValues(SearchResultEntryFactory.java:68) > at > org.apache.directory.api.ldap.codec.factory.SearchResultEntryFactory.encodeValues(SearchResultEntryFactory.java:68) > at > org.apache.directory.api.ldap.codec.factory.SearchResultEntryFactory.encodeValues(SearchResultEntryFactory.java:68){code} > After this error the search operations are really slow, up to the point that > searches that took few ms take more than one minute. I'm unable to reproduce > it, please help. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: dev-unsubscr...@directory.apache.org For additional commands, e-mail: dev-h...@directory.apache.org
[jira] [Commented] (DIRSERVER-2340) Error causes permanent unresponsivenes
[ https://issues.apache.org/jira/browse/DIRSERVER-2340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17286878#comment-17286878 ] Andrea Campana commented on DIRSERVER-2340: --- Hi Stefan thanks for your help, you got it totally: we have exactly groupOfNames entities with thousand of correlated users. No problems on increasing the stack size for the JVM, we did it, hope that it will solve the issue. What is strange (and scary) is that the groups are never accessed directly from the applications, so I was wondering if there could be some internal component that periodically checks the entities in the directory. > Error causes permanent unresponsivenes > --- > > Key: DIRSERVER-2340 > URL: https://issues.apache.org/jira/browse/DIRSERVER-2340 > Project: Directory ApacheDS > Issue Type: Bug >Affects Versions: 2.0.0.AM26 > Environment: Apache DS 2.0.0 AM 26 running over RHEL 7.8 and Oracle > JDK 1.8.0_241-b07. >Reporter: Andrea Campana >Priority: Major > > Hi, I've been using ApacheDS since version 1.5, and I'm running into this > issue: the system runs ok for days, or weeks, until I get this error in the > logs: > > {code:java} > [20:00:03] WARN [org.apache.directory.server.ldap.LdapProtocolHandler] - > Unexpected exception forcing session to close: sending disconnect notice to > client. > java.lang.StackOverflowError > at > org.apache.directory.api.ldap.codec.factory.SearchResultEntryFactory.encodeValues(SearchResultEntryFactory.java:66) > at > org.apache.directory.api.ldap.codec.factory.SearchResultEntryFactory.encodeValues(SearchResultEntryFactory.java:68) > at > org.apache.directory.api.ldap.codec.factory.SearchResultEntryFactory.encodeValues(SearchResultEntryFactory.java:68) > at > org.apache.directory.api.ldap.codec.factory.SearchResultEntryFactory.encodeValues(SearchResultEntryFactory.java:68){code} > After this error the search operations are really slow, up to the point that > searches that took few ms take more than one minute. I'm unable to reproduce > it, please help. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: dev-unsubscr...@directory.apache.org For additional commands, e-mail: dev-h...@directory.apache.org
[jira] [Commented] (DIRSERVER-2340) Error causes permanent unresponsivenes
[ https://issues.apache.org/jira/browse/DIRSERVER-2340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17286285#comment-17286285 ] Stefan Seelmann commented on DIRSERVER-2340: Such a stack overflow error also happened to me when I worked on https://issues.apache.org/jira/browse/DIRSTUDIO-1119 and added more than 10k member attribute values to a groupOfNames entry. I think we need to change the recursive algorithm the LDAP coded to an iterative one. Do you have entries me 1000s of attribute values? (probably groups) As a workaround you can change the stack size of the JVM using the {-Xss} JVM flag, default on Linux is 1m so you can try e.g. {-Xss4m}. If you use the installer that would be configured in the conf/wrapper.conf with a line like {wrapper.java.additional.1=-Xss4m}. > Error causes permanent unresponsivenes > --- > > Key: DIRSERVER-2340 > URL: https://issues.apache.org/jira/browse/DIRSERVER-2340 > Project: Directory ApacheDS > Issue Type: Bug >Affects Versions: 2.0.0.AM26 > Environment: Apache DS 2.0.0 AM 26 running over RHEL 7.8 and Oracle > JDK 1.8.0_241-b07. >Reporter: Andrea Campana >Priority: Major > > Hi, I've been using ApacheDS since version 1.5, and I'm running into this > issue: the system runs ok for days, or weeks, until I get this error in the > logs: > > {code:java} > [20:00:03] WARN [org.apache.directory.server.ldap.LdapProtocolHandler] - > Unexpected exception forcing session to close: sending disconnect notice to > client. > java.lang.StackOverflowError > at > org.apache.directory.api.ldap.codec.factory.SearchResultEntryFactory.encodeValues(SearchResultEntryFactory.java:66) > at > org.apache.directory.api.ldap.codec.factory.SearchResultEntryFactory.encodeValues(SearchResultEntryFactory.java:68) > at > org.apache.directory.api.ldap.codec.factory.SearchResultEntryFactory.encodeValues(SearchResultEntryFactory.java:68) > at > org.apache.directory.api.ldap.codec.factory.SearchResultEntryFactory.encodeValues(SearchResultEntryFactory.java:68){code} > After this error the search operations are really slow, up to the point that > searches that took few ms take more than one minute. I'm unable to reproduce > it, please help. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: dev-unsubscr...@directory.apache.org For additional commands, e-mail: dev-h...@directory.apache.org