- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Errors in the application
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
тАО05-07-2009 02:15 AM
тАО05-07-2009 02:15 AM
Errors in the application
I'm getting the below errors in my application. Does that mean that I needto increasethe file descriptors.
2009 05 07 02:36:55 (001) main. setrlimit(RLIMIT_NOFILE) failed with code 22 /*2
*/
2009 05 07 02:36:55 (001) main. setrlimit(RLIMIT_STACK) failed with code 22 /*2*
/
Output of uname -a
HP-UX B.11.11 U 9000/800 3455890456 unlimited-user license
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2009 02:59 AM
тАО05-07-2009 02:59 AM
Re: Errors in the application
errno 22 = EINVAL
getrlimit(2) man page indicates this for EINVAL:
The setrlimit() function may fail if:
[EINVAL] The limit specified cannot be lowered because
current usage is already higher than the limit.
[EINVAL] A user with appropriate privileges has attempted
to raise rlp->rlim_cur or rlp->rlim_max to a value
greater than the system is capable of supporting.
[EINVAL] The value of rlp->rlim_cur is less than the number
of file descriptors the process already has
allocated.
[EINVAL] The value of rlp->rlim_max is less than the
current soft limit.
to check the maximum size of a core file (RLIMIT_CORE) run the following command:
ulimit -Ha
ulimit -Sa
i don't know hox to check RLIMIT_CPU
Regards,
Cedrick Gaillard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-07-2009 07:41 PM - edited тАО08-20-2014 12:07 PM
тАО05-07-2009 07:41 PM - edited тАО08-20-2014 12:07 PM
Re: Errors in the application
>setrlimit(RLIMIT_STACK) failed with code 22
If you need to increase this, you'll have to change the kernel parm maxssiz. You should be cautious doing this for 32 bit apps, since it decreases maxdsiz, if you have it at 1 Gb.