HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to increase RLIMIT_AS value
Operating System - HP-UX
1831635
Members
1714
Online
110027
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
Forums
Discussions
Discussions
Discussions
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
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
07-04-2005 12:14 AM
07-04-2005 12:14 AM
How to increase RLIMIT_AS value
Hi,
Please find the below sample code, which gives RLIMIT_AS value.In one of our case, we need this "RLIMIT_AS' to be greater than 2GB or unlimited.How do we set this system wide?
output of the sample code now:
Core: Max:: 2147483647, Core: Min:: 2147483647
Dsiz: Max:: 1737486336, Dsiz: Min:: 1737486336
Stack: Max:: 401604608, Stack: Min:: 401604608
Sample code:
#include
#include
#include
#define SUCCESS 0
int main(void)
{
int ret = 0;
struct rlimit rlp = {0};
int retval = EXIT_SUCCESS;
if ((ret = getrlimit(RLIMIT_AS, &rlp)) != SUCCESS)
{
perror("getrlimit() -- total");
retval = EXIT_FAILURE;
goto exit;
}
fprintf(stdout, "Total Process Memory: Max:: %ld, Core: Min:: %ld\n",
rlp.rlim_max, rlp.rlim_cur);
if ((ret = getrlimit(RLIMIT_DATA, &rlp)) != SUCCESS)
{
perror("getrlimit() -- dsiz");
retval = EXIT_FAILURE;
goto exit;
}
fprintf(stdout, "Dsiz: Max:: %ld, Dsiz: Min:: %ld\n",
rlp.rlim_max, rlp.rlim_cur);
if ((ret = getrlimit(RLIMIT_STACK, &rlp)) != SUCCESS)
{
perror("getrlimit() -- stack");
retval = EXIT_FAILURE;
goto exit;
}
fprintf(stdout, "Stack: Max:: %ld, Stack: Min:: %ld\n",
rlp.rlim_max, rlp.rlim_cur);
exit:
return retval;
}
Please find the below sample code, which gives RLIMIT_AS value.In one of our case, we need this "RLIMIT_AS' to be greater than 2GB or unlimited.How do we set this system wide?
output of the sample code now:
Core: Max:: 2147483647, Core: Min:: 2147483647
Dsiz: Max:: 1737486336, Dsiz: Min:: 1737486336
Stack: Max:: 401604608, Stack: Min:: 401604608
Sample code:
#include
#include
#include
#define SUCCESS 0
int main(void)
{
int ret = 0;
struct rlimit rlp = {0};
int retval = EXIT_SUCCESS;
if ((ret = getrlimit(RLIMIT_AS, &rlp)) != SUCCESS)
{
perror("getrlimit() -- total");
retval = EXIT_FAILURE;
goto exit;
}
fprintf(stdout, "Total Process Memory: Max:: %ld, Core: Min:: %ld\n",
rlp.rlim_max, rlp.rlim_cur);
if ((ret = getrlimit(RLIMIT_DATA, &rlp)) != SUCCESS)
{
perror("getrlimit() -- dsiz");
retval = EXIT_FAILURE;
goto exit;
}
fprintf(stdout, "Dsiz: Max:: %ld, Dsiz: Min:: %ld\n",
rlp.rlim_max, rlp.rlim_cur);
if ((ret = getrlimit(RLIMIT_STACK, &rlp)) != SUCCESS)
{
perror("getrlimit() -- stack");
retval = EXIT_FAILURE;
goto exit;
}
fprintf(stdout, "Stack: Max:: %ld, Stack: Min:: %ld\n",
rlp.rlim_max, rlp.rlim_cur);
exit:
return retval;
}
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2005 01:10 AM
07-04-2005 01:10 AM
Re: How to increase RLIMIT_AS value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2005 12:42 AM
07-06-2005 12:42 AM
Re: How to increase RLIMIT_AS value
If it's 32-bit application, you cannot set RLIMIT_AS over 1.9GB.
Otherwise, if it's 64-bit application, check:
kmtune | grep maxd
kernel parameters for maximal data segment size for both 32- and 64-bit applications.
Otherwise, if it's 64-bit application, check:
kmtune | grep maxd
kernel parameters for maximal data segment size for both 32- and 64-bit applications.
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
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP