掲示板

[DXP] Too many open files

thumbnail
6年前 に David Bougearel によって更新されました。

[DXP] Too many open files

Junior Member 投稿: 54 参加年月日: 16/06/30 最新の投稿
Hi,

On liferay DXP, we are facing to a too many open files where the ulimit is set to 4096.
Is there any preconisation for this setting for liferay dxp usage ?

Thanks.

Best regards,
David.
thumbnail
6年前 に Olaf Kock によって更新されました。

RE: [DXP] Too many open files

Liferay Legend 投稿: 6403 参加年月日: 08/09/23 最新の投稿
David Bougearel:
On liferay DXP, we are facing to a too many open files where the ulimit is set to 4096.
Is there any preconisation for this setting for liferay dxp usage ?


I haven't played with this parameter - just checked my local setup, and it reveals "unlimited".

Does this happen with a vanilla installation or with your custom components? Will it happen later (or not at all) if you raise the limit? It might be worth checking which files indeed are open.

Lowering the available memory might help raise the GC frequency, which would clean up resources as well: Leaving file references open&dangling combined with infrequent garbage collection.

Or, it might just be a too low parameter - as I said, I can't recall to ever having experimented with it. How did you get to this setting?
thumbnail
6年前 に Jorge Díaz によって更新されました。

RE: [DXP] Too many open files (回答)

Liferay Master 投稿: 753 参加年月日: 14/01/09 最新の投稿
Hi David,

For any Java application that runs in a application server (Liferay, Alfresco, Documentum, etc...), I always configure ulimit to the maximum size that allows the operating system.

Important: in Linux/Unix, any TCP connection is consider as an open file, so "too many open files" error is produced when (number of opened files + number of tcp connections) are greater than configured limit at operating system level

For more information about configuring the maximum size, search in google:
thumbnail
6年前 に David Bougearel によって更新されました。

RE: [DXP] Too many open files

Junior Member 投稿: 54 参加年月日: 16/06/30 最新の投稿
Hi guys,

Thanks for your answers, it's enough for me.
Have a nice day.

Best regards,
David.