You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Илья Нарыжный <ph...@ydn.ru> on 2020/01/16 18:27:19 UTC

OOM: Direct buffer memory

Hello,

After upgrading to Wicket 8.6.1 we started seeing periodical OOMs in
logs like below.
I'm not 100% sure that it's due to Wicket, but we didn't change
containers parameters and etc - so at least it's quite suspicious.
Our startup flags:
-XX:+PerfDisableSharedMem -Xmx4G -Xms4G -XX:MaxDirectMemorySize=4G
-XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=/app/runtime/heapdump.bin

Btw, except these exceptions in logs - no other negative effects (at
least we didn't reveal so far).

If you have ideas - I will really appreciate.

java.lang.OutOfMemoryError: Direct buffer memory
 at java.nio.Bits.reserveMemory(Bits.java:666)
 at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:123)
 at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:311)
 at sun.nio.ch.Util.getTemporaryDirectBuffer(Util.java:241)
 at sun.nio.ch.IOUtil.write(IOUtil.java:58)
 at sun.nio.ch.FileChannelImpl.writeInternal(FileChannelImpl.java:778)
 at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:764)
 at org.apache.wicket.pageStore.DiskDataStore$SessionEntry.savePage(DiskDataStore.java:352)
 at org.apache.wicket.pageStore.DiskDataStore.storeData(DiskDataStore.java:185)
 at org.apache.wicket.pageStore.AsynchronousDataStore.storeData(AsynchronousDataStore.java:217)
 at org.apache.wicket.pageStore.AbstractPageStore.storePageData(AbstractPageStore.java:119)
 at org.apache.wicket.pageStore.DefaultPageStore.storePage(DefaultPageStore.java:66)

Thanks,
Ilya
---------------------------------------------
Orienteer(http://orienteer.org) - open source Business Application Platform

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: OOM: Direct buffer memory

Posted by Илья Нарыжный <ph...@ydn.ru>.
Wicket users,

We are still investigating, but it's seems to be related to using of
docker image with openjdk over alpine.
If you have similar situation: try to repack under different base
docker image with java.

Thanks,
Ilya
---------------------------------------------
Orienteer(http://orienteer.org) - open source Business Application Platform

On Fri, Jan 17, 2020 at 9:33 AM Илья Нарыжный <ph...@ydn.ru> wrote:
>
> Yes. Pretty sure.
> But it might be something indirect: for example, during building of our next docker image with the newer wicket, some openjdk/maven/libs newer dependency was picked up as well.
> That's something which we are evaluating.
>
> Thanks,
> Ilya
> ---------------------------------------------
> Orienteer(http://orienteer.org) - open source Business Application Platform
>
> On Fri, Jan 17, 2020, 12:15 AM Sven Meier <sv...@meiers.net> wrote:
>>
>> Hi,
>>
>> I don't see anything related in the changes from 8.5 to 8.6.1
>>
>> https://github.com/apache/wicket/blob/wicket-8.x/CHANGELOG-8.x
>>
>> Are you sure these OOMs didn't happen before?
>>
>> Sven
>>
>>
>> On 16.01.20 22:52, Илья Нарыжный wrote:
>> > Sven,
>> >
>> > It was 8.5 - so not so far away.
>> >
>> > Thanks,
>> > Ilya
>> > ---------------------------------------------
>> > Orienteer(http://orienteer.org) - open source Business Application Platform
>> >
>> > On Thu, Jan 16, 2020 at 11:41 AM Sven Meier <sv...@meiers.net> wrote:
>> >> What was your previous version?
>> >>
>> >> Sven
>> >>
>> >> Am 16. Januar 2020 19:27:19 MEZ schrieb "Илья Нарыжный" <ph...@ydn.ru>:
>> >>> Hello,
>> >>>
>> >>> After upgrading to Wicket 8.6.1 we started seeing periodical OOMs in
>> >>> logs like below.
>> >>> I'm not 100% sure that it's due to Wicket, but we didn't change
>> >>> containers parameters and etc - so at least it's quite suspicious.
>> >>> Our startup flags:
>> >>> -XX:+PerfDisableSharedMem -Xmx4G -Xms4G -XX:MaxDirectMemorySize=4G
>> >>> -XX:+HeapDumpOnOutOfMemoryError
>> >>> -XX:HeapDumpPath=/app/runtime/heapdump.bin
>> >>>
>> >>> Btw, except these exceptions in logs - no other negative effects (at
>> >>> least we didn't reveal so far).
>> >>>
>> >>> If you have ideas - I will really appreciate.
>> >>>
>> >>> java.lang.OutOfMemoryError: Direct buffer memory
>> >>> at java.nio.Bits.reserveMemory(Bits.java:666)
>> >>> at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:123)
>> >>> at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:311)
>> >>> at sun.nio.ch.Util.getTemporaryDirectBuffer(Util.java:241)
>> >>> at sun.nio.ch.IOUtil.write(IOUtil.java:58)
>> >>> at sun.nio.ch.FileChannelImpl.writeInternal(FileChannelImpl.java:778)
>> >>> at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:764)
>> >>> at
>> >>> org.apache.wicket.pageStore.DiskDataStore$SessionEntry.savePage(DiskDataStore.java:352)
>> >>> at
>> >>> org.apache.wicket.pageStore.DiskDataStore.storeData(DiskDataStore.java:185)
>> >>> at
>> >>> org.apache.wicket.pageStore.AsynchronousDataStore.storeData(AsynchronousDataStore.java:217)
>> >>> at
>> >>> org.apache.wicket.pageStore.AbstractPageStore.storePageData(AbstractPageStore.java:119)
>> >>> at
>> >>> org.apache.wicket.pageStore.DefaultPageStore.storePage(DefaultPageStore.java:66)
>> >>>
>> >>> Thanks,
>> >>> Ilya
>> >>> ---------------------------------------------
>> >>> Orienteer(http://orienteer.org) - open source Business Application
>> >>> Platform
>> >>>
>> >>> ---------------------------------------------------------------------
>> >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> >>> For additional commands, e-mail: users-help@wicket.apache.org
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> > For additional commands, e-mail: users-help@wicket.apache.org
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: OOM: Direct buffer memory

Posted by Илья Нарыжный <ph...@ydn.ru>.
Yes. Pretty sure.
But it might be something indirect: for example, during building of our
next docker image with the newer wicket, some openjdk/maven/libs newer
dependency was picked up as well.
That's something which we are evaluating.

Thanks,
Ilya
---------------------------------------------
Orienteer(http://orienteer.org) - open source Business Application
Platform

On Fri, Jan 17, 2020, 12:15 AM Sven Meier <sv...@meiers.net> wrote:

> Hi,
>
> I don't see anything related in the changes from 8.5 to 8.6.1
>
> https://github.com/apache/wicket/blob/wicket-8.x/CHANGELOG-8.x
>
> Are you sure these OOMs didn't happen before?
>
> Sven
>
>
> On 16.01.20 22:52, Илья Нарыжный wrote:
> > Sven,
> >
> > It was 8.5 - so not so far away.
> >
> > Thanks,
> > Ilya
> > ---------------------------------------------
> > Orienteer(http://orienteer.org) - open source Business Application
> Platform
> >
> > On Thu, Jan 16, 2020 at 11:41 AM Sven Meier <sv...@meiers.net> wrote:
> >> What was your previous version?
> >>
> >> Sven
> >>
> >> Am 16. Januar 2020 19:27:19 MEZ schrieb "Илья Нарыжный" <phantom@ydn.ru
> >:
> >>> Hello,
> >>>
> >>> After upgrading to Wicket 8.6.1 we started seeing periodical OOMs in
> >>> logs like below.
> >>> I'm not 100% sure that it's due to Wicket, but we didn't change
> >>> containers parameters and etc - so at least it's quite suspicious.
> >>> Our startup flags:
> >>> -XX:+PerfDisableSharedMem -Xmx4G -Xms4G -XX:MaxDirectMemorySize=4G
> >>> -XX:+HeapDumpOnOutOfMemoryError
> >>> -XX:HeapDumpPath=/app/runtime/heapdump.bin
> >>>
> >>> Btw, except these exceptions in logs - no other negative effects (at
> >>> least we didn't reveal so far).
> >>>
> >>> If you have ideas - I will really appreciate.
> >>>
> >>> java.lang.OutOfMemoryError: Direct buffer memory
> >>> at java.nio.Bits.reserveMemory(Bits.java:666)
> >>> at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:123)
> >>> at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:311)
> >>> at sun.nio.ch.Util.getTemporaryDirectBuffer(Util.java:241)
> >>> at sun.nio.ch.IOUtil.write(IOUtil.java:58)
> >>> at sun.nio.ch.FileChannelImpl.writeInternal(FileChannelImpl.java:778)
> >>> at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:764)
> >>> at
> >>>
> org.apache.wicket.pageStore.DiskDataStore$SessionEntry.savePage(DiskDataStore.java:352)
> >>> at
> >>>
> org.apache.wicket.pageStore.DiskDataStore.storeData(DiskDataStore.java:185)
> >>> at
> >>>
> org.apache.wicket.pageStore.AsynchronousDataStore.storeData(AsynchronousDataStore.java:217)
> >>> at
> >>>
> org.apache.wicket.pageStore.AbstractPageStore.storePageData(AbstractPageStore.java:119)
> >>> at
> >>>
> org.apache.wicket.pageStore.DefaultPageStore.storePage(DefaultPageStore.java:66)
> >>>
> >>> Thanks,
> >>> Ilya
> >>> ---------------------------------------------
> >>> Orienteer(http://orienteer.org) - open source Business Application
> >>> Platform
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >>> For additional commands, e-mail: users-help@wicket.apache.org
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: OOM: Direct buffer memory

Posted by Sven Meier <sv...@meiers.net>.
Hi,

I don't see anything related in the changes from 8.5 to 8.6.1

https://github.com/apache/wicket/blob/wicket-8.x/CHANGELOG-8.x

Are you sure these OOMs didn't happen before?

Sven


On 16.01.20 22:52, Илья Нарыжный wrote:
> Sven,
>
> It was 8.5 - so not so far away.
>
> Thanks,
> Ilya
> ---------------------------------------------
> Orienteer(http://orienteer.org) - open source Business Application Platform
>
> On Thu, Jan 16, 2020 at 11:41 AM Sven Meier <sv...@meiers.net> wrote:
>> What was your previous version?
>>
>> Sven
>>
>> Am 16. Januar 2020 19:27:19 MEZ schrieb "Илья Нарыжный" <ph...@ydn.ru>:
>>> Hello,
>>>
>>> After upgrading to Wicket 8.6.1 we started seeing periodical OOMs in
>>> logs like below.
>>> I'm not 100% sure that it's due to Wicket, but we didn't change
>>> containers parameters and etc - so at least it's quite suspicious.
>>> Our startup flags:
>>> -XX:+PerfDisableSharedMem -Xmx4G -Xms4G -XX:MaxDirectMemorySize=4G
>>> -XX:+HeapDumpOnOutOfMemoryError
>>> -XX:HeapDumpPath=/app/runtime/heapdump.bin
>>>
>>> Btw, except these exceptions in logs - no other negative effects (at
>>> least we didn't reveal so far).
>>>
>>> If you have ideas - I will really appreciate.
>>>
>>> java.lang.OutOfMemoryError: Direct buffer memory
>>> at java.nio.Bits.reserveMemory(Bits.java:666)
>>> at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:123)
>>> at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:311)
>>> at sun.nio.ch.Util.getTemporaryDirectBuffer(Util.java:241)
>>> at sun.nio.ch.IOUtil.write(IOUtil.java:58)
>>> at sun.nio.ch.FileChannelImpl.writeInternal(FileChannelImpl.java:778)
>>> at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:764)
>>> at
>>> org.apache.wicket.pageStore.DiskDataStore$SessionEntry.savePage(DiskDataStore.java:352)
>>> at
>>> org.apache.wicket.pageStore.DiskDataStore.storeData(DiskDataStore.java:185)
>>> at
>>> org.apache.wicket.pageStore.AsynchronousDataStore.storeData(AsynchronousDataStore.java:217)
>>> at
>>> org.apache.wicket.pageStore.AbstractPageStore.storePageData(AbstractPageStore.java:119)
>>> at
>>> org.apache.wicket.pageStore.DefaultPageStore.storePage(DefaultPageStore.java:66)
>>>
>>> Thanks,
>>> Ilya
>>> ---------------------------------------------
>>> Orienteer(http://orienteer.org) - open source Business Application
>>> Platform
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: OOM: Direct buffer memory

Posted by Илья Нарыжный <ph...@ydn.ru>.
Sven,

It was 8.5 - so not so far away.

Thanks,
Ilya
---------------------------------------------
Orienteer(http://orienteer.org) - open source Business Application Platform

On Thu, Jan 16, 2020 at 11:41 AM Sven Meier <sv...@meiers.net> wrote:
>
> What was your previous version?
>
> Sven
>
> Am 16. Januar 2020 19:27:19 MEZ schrieb "Илья Нарыжный" <ph...@ydn.ru>:
> >Hello,
> >
> >After upgrading to Wicket 8.6.1 we started seeing periodical OOMs in
> >logs like below.
> >I'm not 100% sure that it's due to Wicket, but we didn't change
> >containers parameters and etc - so at least it's quite suspicious.
> >Our startup flags:
> >-XX:+PerfDisableSharedMem -Xmx4G -Xms4G -XX:MaxDirectMemorySize=4G
> >-XX:+HeapDumpOnOutOfMemoryError
> >-XX:HeapDumpPath=/app/runtime/heapdump.bin
> >
> >Btw, except these exceptions in logs - no other negative effects (at
> >least we didn't reveal so far).
> >
> >If you have ideas - I will really appreciate.
> >
> >java.lang.OutOfMemoryError: Direct buffer memory
> > at java.nio.Bits.reserveMemory(Bits.java:666)
> > at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:123)
> > at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:311)
> > at sun.nio.ch.Util.getTemporaryDirectBuffer(Util.java:241)
> > at sun.nio.ch.IOUtil.write(IOUtil.java:58)
> > at sun.nio.ch.FileChannelImpl.writeInternal(FileChannelImpl.java:778)
> > at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:764)
> >at
> >org.apache.wicket.pageStore.DiskDataStore$SessionEntry.savePage(DiskDataStore.java:352)
> >at
> >org.apache.wicket.pageStore.DiskDataStore.storeData(DiskDataStore.java:185)
> >at
> >org.apache.wicket.pageStore.AsynchronousDataStore.storeData(AsynchronousDataStore.java:217)
> >at
> >org.apache.wicket.pageStore.AbstractPageStore.storePageData(AbstractPageStore.java:119)
> >at
> >org.apache.wicket.pageStore.DefaultPageStore.storePage(DefaultPageStore.java:66)
> >
> >Thanks,
> >Ilya
> >---------------------------------------------
> >Orienteer(http://orienteer.org) - open source Business Application
> >Platform
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >For additional commands, e-mail: users-help@wicket.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: OOM: Direct buffer memory

Posted by Sven Meier <sv...@meiers.net>.
What was your previous version?

Sven

Am 16. Januar 2020 19:27:19 MEZ schrieb "Илья Нарыжный" <ph...@ydn.ru>:
>Hello,
>
>After upgrading to Wicket 8.6.1 we started seeing periodical OOMs in
>logs like below.
>I'm not 100% sure that it's due to Wicket, but we didn't change
>containers parameters and etc - so at least it's quite suspicious.
>Our startup flags:
>-XX:+PerfDisableSharedMem -Xmx4G -Xms4G -XX:MaxDirectMemorySize=4G
>-XX:+HeapDumpOnOutOfMemoryError
>-XX:HeapDumpPath=/app/runtime/heapdump.bin
>
>Btw, except these exceptions in logs - no other negative effects (at
>least we didn't reveal so far).
>
>If you have ideas - I will really appreciate.
>
>java.lang.OutOfMemoryError: Direct buffer memory
> at java.nio.Bits.reserveMemory(Bits.java:666)
> at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:123)
> at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:311)
> at sun.nio.ch.Util.getTemporaryDirectBuffer(Util.java:241)
> at sun.nio.ch.IOUtil.write(IOUtil.java:58)
> at sun.nio.ch.FileChannelImpl.writeInternal(FileChannelImpl.java:778)
> at sun.nio.ch.FileChannelImpl.write(FileChannelImpl.java:764)
>at
>org.apache.wicket.pageStore.DiskDataStore$SessionEntry.savePage(DiskDataStore.java:352)
>at
>org.apache.wicket.pageStore.DiskDataStore.storeData(DiskDataStore.java:185)
>at
>org.apache.wicket.pageStore.AsynchronousDataStore.storeData(AsynchronousDataStore.java:217)
>at
>org.apache.wicket.pageStore.AbstractPageStore.storePageData(AbstractPageStore.java:119)
>at
>org.apache.wicket.pageStore.DefaultPageStore.storePage(DefaultPageStore.java:66)
>
>Thanks,
>Ilya
>---------------------------------------------
>Orienteer(http://orienteer.org) - open source Business Application
>Platform
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>For additional commands, e-mail: users-help@wicket.apache.org