- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- File size limit exceeded (Java)
Operating System - Linux
1820309
Members
2617
Online
109623
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2009 06:06 AM
тАО04-28-2009 06:06 AM
File size limit exceeded (Java)
Good morning/afternoon everyone,
Last night there were some Java application crashes here due to a "File size limit exceeded" on a log file that had reached 2GB. Of course, once the log file was moved out of the way, applications started and ran as normal.
My first thought was that it was a Java compile-time or parameter restriction as these are 64-bit systems running 2.6 kernels (and recent versions of glibc), but I just wanted to be sure I've covered all my bases:
aspt5ap1 ~ $ uname -a
Linux aspt5ap1.domain.snipped 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:19 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
aspt5ap1 ~ $ free -m
total used free shared buffers cached
Mem: 7985 6726 1258 0 115 5909
-/+ buffers/cache: 702 7283
Swap: 7999 0 7999
aspt5ap1 ~ $ rpm -q glibc
glibc-2.5-34
glibc-2.5-34
aspt5ap1 ~ $
Last night there were some Java application crashes here due to a "File size limit exceeded" on a log file that had reached 2GB. Of course, once the log file was moved out of the way, applications started and ran as normal.
My first thought was that it was a Java compile-time or parameter restriction as these are 64-bit systems running 2.6 kernels (and recent versions of glibc), but I just wanted to be sure I've covered all my bases:
aspt5ap1 ~ $ uname -a
Linux aspt5ap1.domain.snipped 2.6.18-53.el5 #1 SMP Wed Oct 10 16:34:19 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
aspt5ap1 ~ $ free -m
total used free shared buffers cached
Mem: 7985 6726 1258 0 115 5909
-/+ buffers/cache: 702 7283
Swap: 7999 0 7999
aspt5ap1 ~ $ rpm -q glibc
glibc-2.5-34
glibc-2.5-34
aspt5ap1 ~ $
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2009 06:12 AM
тАО04-28-2009 06:12 AM
Re: File size limit exceeded (Java)
The developers just got back to me, it's actually a C++ app that was not compiled with the below flag. I have asked them to recompile with this flag:
g++ -D_FILE_OFFSET_BITS=64
If anyone has any suggestions or alternatives, that'd be great. Thanks!
g++ -D_FILE_OFFSET_BITS=64
If anyone has any suggestions or alternatives, that'd be great. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2009 06:33 AM
тАО04-28-2009 06:33 AM
Re: File size limit exceeded (Java)
After recompiling their applications with the above flag and testing with last night's 2GB log file, everything works great, now.
Hopefully this thread helps someone else in the future.
Hopefully this thread helps someone else in the future.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP