You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by S Ahmed <sa...@gmail.com> on 2013/03/25 19:42:58 UTC
log.file.size limit?
Is there any limit to how large a log file can be?
I swear I read somewhere that java's memory mapped implementation is
limited to 2GB but I'm not sure.
Re: log.file.size limit?
Posted by David Arthur <mu...@gmail.com>.
If you look at the description of the "map" method, it states:
size - The size of the region to be mapped; must be non-negative and no
greater than Integer.MAX_VALUE
-David
On 3/25/13 4:37 PM, S Ahmed wrote:
> but it show's long not int?
>
> Isn't it then Long.MAX_VALUE ?
>
>
> On Mon, Mar 25, 2013 at 3:14 PM, David Arthur <mu...@gmail.com> wrote:
>
>> FileChannel#map docs indicate the max size is Integer.MAX_VALUE, so yea 2gb
>>
>> http://docs.oracle.com/javase/**6/docs/api/java/nio/channels/**
>> FileChannel.html#map(java.nio.**channels.FileChannel.MapMode<http://docs.oracle.com/javase/6/docs/api/java/nio/channels/FileChannel.html#map(java.nio.channels.FileChannel.MapMode>,
>> long, long)
>>
>>
>>
>> On 3/25/13 2:42 PM, S Ahmed wrote:
>>
>>> Is there any limit to how large a log file can be?
>>> I swear I read somewhere that java's memory mapped implementation is
>>> limited to 2GB but I'm not sure.
>>>
>>>
Re: log.file.size limit?
Posted by S Ahmed <sa...@gmail.com>.
but it show's long not int?
Isn't it then Long.MAX_VALUE ?
On Mon, Mar 25, 2013 at 3:14 PM, David Arthur <mu...@gmail.com> wrote:
> FileChannel#map docs indicate the max size is Integer.MAX_VALUE, so yea 2gb
>
> http://docs.oracle.com/javase/**6/docs/api/java/nio/channels/**
> FileChannel.html#map(java.nio.**channels.FileChannel.MapMode<http://docs.oracle.com/javase/6/docs/api/java/nio/channels/FileChannel.html#map(java.nio.channels.FileChannel.MapMode>,
> long, long)
>
>
>
> On 3/25/13 2:42 PM, S Ahmed wrote:
>
>> Is there any limit to how large a log file can be?
>> I swear I read somewhere that java's memory mapped implementation is
>> limited to 2GB but I'm not sure.
>>
>>
>
Re: log.file.size limit?
Posted by David Arthur <mu...@gmail.com>.
FileChannel#map docs indicate the max size is Integer.MAX_VALUE, so yea 2gb
http://docs.oracle.com/javase/6/docs/api/java/nio/channels/FileChannel.html#map(java.nio.channels.FileChannel.MapMode,
long, long)
On 3/25/13 2:42 PM, S Ahmed wrote:
> Is there any limit to how large a log file can be?
> I swear I read somewhere that java's memory mapped implementation is
> limited to 2GB but I'm not sure.
>
Re: log.file.size limit?
Posted by Jay Kreps <ja...@gmail.com>.
We limit individual segment files to 2GB for slightly esoteric
reasons. There is no limit for the log as a whole so limiting the
segments to 2GB does not constrain how much data you can retain.
-Jay
On Mon, Mar 25, 2013 at 11:42 AM, S Ahmed <sa...@gmail.com> wrote:
> Is there any limit to how large a log file can be?
> I swear I read somewhere that java's memory mapped implementation is
> limited to 2GB but I'm not sure.