[jira] [Updated] (JAMES-3911) JPA: Memory leak upon imapsync
[ https://issues.apache.org/jira/browse/JAMES-3911?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Benoit Tellier updated JAMES-3911: -- Attachment: Screenshot from 2023-06-02 10-04-33.png > JPA: Memory leak upon imapsync > -- > > Key: JAMES-3911 > URL: https://issues.apache.org/jira/browse/JAMES-3911 > Project: James Server > Issue Type: Improvement > Components: jpa, mailbox >Reporter: Benoit Tellier >Priority: Major > Attachments: Screenshot from 2023-06-02 10-04-33.png > > > When running OpenJPA mailboxes for apache james we notice a memory leak when > running imapSync. > This was originaly spotted on top of the MySQL driver but was reproduced on > top of Derby embedded DB. See attached screenshot showing the memory of the > container gradually increasing when running the following command: > {code:java} > ./imapsync --host1 xxx.linagora.com --user1 'btell...@linagora.com' > --password1 '' \ > --host2 james.local --user2 'bob@localhost' --password2 > 123456 > {code} > Credit: > https://www.mail-archive.com/server-user@james.apache.org/msg16729.html -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org
[jira] [Created] (JAMES-3911) JPA: Memory leak upon imapsync
Benoit Tellier created JAMES-3911: - Summary: JPA: Memory leak upon imapsync Key: JAMES-3911 URL: https://issues.apache.org/jira/browse/JAMES-3911 Project: James Server Issue Type: Improvement Components: jpa, mailbox Reporter: Benoit Tellier When running OpenJPA mailboxes for apache james we notice a memory leak when running imapSync. This was originaly spotted on top of the MySQL driver but was reproduced on top of Derby embedded DB. See attached screenshot showing the memory of the container gradually increasing when running the following command: {code:java} ./imapsync --host1 xxx.linagora.com --user1 'btell...@linagora.com' --password1 '' \ --host2 james.local --user2 'bob@localhost' --password2 123456 {code} Credit: https://www.mail-archive.com/server-user@james.apache.org/msg16729.html -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org
[BUILD-FAILURE]: Job 'james/ApacheJames/master [master] [1025]'
BUILD-FAILURE: Job 'james/ApacheJames/master [master] [1025]': Check console output at "https://ci-builds.apache.org/job/james/job/ApacheJames/job/master/1025/;>james/ApacheJames/master [master] [1025]" - To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org
[jira] [Commented] (JAMES-3906) Add hot reloading/updating without restart of the certificate
[ https://issues.apache.org/jira/browse/JAMES-3906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17728467#comment-17728467 ] Wojtek commented on JAMES-3906: --- > Wojtek shall we try to backport this on an hypothetical 3.8.1 release ? [~btellier] I'd say +1, if there would be 3.8.1 release. > Add hot reloading/updating without restart of the certificate > - > > Key: JAMES-3906 > URL: https://issues.apache.org/jira/browse/JAMES-3906 > Project: James Server > Issue Type: New Feature >Reporter: Wojtek >Priority: Minor > Time Spent: 2h 10m > Remaining Estimate: 0h > > It would be great to be able to update the certificate without restarting the > server, reloading the certificate from the file and/or updating it via REST > API > > Mailing list thread: > https://www.mail-archive.com/server-user@james.apache.org/msg16722.html -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org
[james-mime4j] branch master updated: MIME4J-322 Use ArrayDeque in MimeTokenStream
This is an automated email from the ASF dual-hosted git repository. btellier pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-mime4j.git The following commit(s) were added to refs/heads/master by this push: new 53413b0a MIME4J-322 Use ArrayDeque in MimeTokenStream 53413b0a is described below commit 53413b0acd5500a678dde75824f2f30d7a52a589 Author: Benoit Tellier AuthorDate: Mon Feb 13 16:58:45 2023 +0700 MIME4J-322 Use ArrayDeque in MimeTokenStream This reduces overall allocations as structures related to "linked lists" do not need to be allocated. --- .../src/main/java/org/apache/james/mime4j/stream/MimeTokenStream.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/apache/james/mime4j/stream/MimeTokenStream.java b/core/src/main/java/org/apache/james/mime4j/stream/MimeTokenStream.java index 715eeeb9..8b6bcd7c 100644 --- a/core/src/main/java/org/apache/james/mime4j/stream/MimeTokenStream.java +++ b/core/src/main/java/org/apache/james/mime4j/stream/MimeTokenStream.java @@ -25,7 +25,7 @@ import java.io.InputStreamReader; import java.io.Reader; import java.io.UnsupportedEncodingException; import java.nio.charset.Charset; -import java.util.LinkedList; +import java.util.ArrayDeque; import org.apache.james.mime4j.Charsets; import org.apache.james.mime4j.MimeException; @@ -82,7 +82,7 @@ public class MimeTokenStream { private final DecodeMonitor monitor; private final FieldBuilder fieldBuilder; private final BodyDescriptorBuilder bodyDescBuilder; -private final LinkedList entities = new LinkedList(); +private final ArrayDeque entities = new ArrayDeque<>(); private EntityState state = EntityState.T_END_OF_STREAM; private EntityStateMachine currentStateMachine; - To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org
[jira] [Closed] (JAMES-3906) Add hot reloading/updating without restart of the certificate
[ https://issues.apache.org/jira/browse/JAMES-3906?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Benoit Tellier closed JAMES-3906. - Resolution: Fixed > Add hot reloading/updating without restart of the certificate > - > > Key: JAMES-3906 > URL: https://issues.apache.org/jira/browse/JAMES-3906 > Project: James Server > Issue Type: New Feature >Reporter: Wojtek >Priority: Minor > Time Spent: 2h 10m > Remaining Estimate: 0h > > It would be great to be able to update the certificate without restarting the > server, reloading the certificate from the file and/or updating it via REST > API > > Mailing list thread: > https://www.mail-archive.com/server-user@james.apache.org/msg16722.html -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org
[BUILD-FAILURE]: Job 'james/ApacheJames/master [master] [1024]'
BUILD-FAILURE: Job 'james/ApacheJames/master [master] [1024]': Check console output at "https://ci-builds.apache.org/job/james/job/ApacheJames/job/master/1024/;>james/ApacheJames/master [master] [1024]" - To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org
[jira] [Commented] (JAMES-3906) Add hot reloading/updating without restart of the certificate
[ https://issues.apache.org/jira/browse/JAMES-3906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17728364#comment-17728364 ] Matthieu Baechler commented on JAMES-3906: -- The letsencrypt part deserves its own ticket anyway, you can close this one IMO. > Add hot reloading/updating without restart of the certificate > - > > Key: JAMES-3906 > URL: https://issues.apache.org/jira/browse/JAMES-3906 > Project: James Server > Issue Type: New Feature >Reporter: Wojtek >Priority: Minor > Time Spent: 2h 10m > Remaining Estimate: 0h > > It would be great to be able to update the certificate without restarting the > server, reloading the certificate from the file and/or updating it via REST > API > > Mailing list thread: > https://www.mail-archive.com/server-user@james.apache.org/msg16722.html -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org
[BUILD-FAILURE]: Job 'james/ApacheJames/master [master] [1023]'
BUILD-FAILURE: Job 'james/ApacheJames/master [master] [1023]': Check console output at "https://ci-builds.apache.org/job/james/job/ApacheJames/job/master/1023/;>james/ApacheJames/master [master] [1023]" - To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org
[jira] [Commented] (JAMES-3906) Add hot reloading/updating without restart of the certificate
[ https://issues.apache.org/jira/browse/JAMES-3906?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17728270#comment-17728270 ] Benoit Tellier commented on JAMES-3906: --- I just merged the root to reload SSL certificates from the configuration (without downtime / aborting connections). If there is no other development planned on the topic I proposes to close the ticket. [~.wojtek] shall we try to backport this on an hypothetical 3.8.1 release ? > Add hot reloading/updating without restart of the certificate > - > > Key: JAMES-3906 > URL: https://issues.apache.org/jira/browse/JAMES-3906 > Project: James Server > Issue Type: New Feature >Reporter: Wojtek >Priority: Minor > Time Spent: 2h 10m > Remaining Estimate: 0h > > It would be great to be able to update the certificate without restarting the > server, reloading the certificate from the file and/or updating it via REST > API > > Mailing list thread: > https://www.mail-archive.com/server-user@james.apache.org/msg16722.html -- This message was sent by Atlassian Jira (v8.20.10#820010) - To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org