|
From: Malte H. <hu...@in...> - 2009-11-16 11:24:50
|
Hello Christian, here is the content of /usr/include/linux/limits.h: --------------------------------------------------- #ifndef _LINUX_LIMITS_H #define _LINUX_LIMITS_H #define NR_OPEN 1024 #define NGROUPS_MAX 65536 /* supplemental group IDs are available */ #define ARG_MAX 131072 /* # bytes of args + environ for exec() */ #define LINK_MAX 127 /* # links a file may have */ #define MAX_CANON 255 /* size of the canonical input queue */ #define MAX_INPUT 255 /* size of the type-ahead buffer */ #define NAME_MAX 255 /* # chars in a file name */ #define PATH_MAX 4096 /* # chars in a path name including nul */ #define PIPE_BUF 4096 /* # bytes in atomic write to a pipe */ #define XATTR_NAME_MAX 255 /* # chars in an extended attribute name */ #define XATTR_SIZE_MAX 65536 /* size of an extended attribute value (64k) */ #define XATTR_LIST_MAX 65536 /* size of extended attribute namelist (64k) */ #define RTSIG_MAX 32 #endif --------------------------------------------------- And these are the contents of /usr/include/bits/local_lim.h: --------------------------------------------------- /* Minimum guaranteed maximum values for system limits. Linux version. Copyright (C) 1993-1998,2000,2002-2004,2008 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with the GNU C Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* The kernel header pollutes the namespace with the NR_OPEN symbol and defines LINK_MAX although filesystems have different maxima. A similar thing is true for OPEN_MAX: the limit can be changed at runtime and therefore the macro must not be defined. Remove this after including the header if necessary. */ #ifndef NR_OPEN # define __undef_NR_OPEN #endif #ifndef LINK_MAX # define __undef_LINK_MAX #endif #ifndef OPEN_MAX # define __undef_OPEN_MAX #endif #ifndef ARG_MAX # define __undef_ARG_MAX #endif /* The kernel sources contain a file with all the needed information. */ #include <linux/limits.h> /* Have to remove NR_OPEN? */ #ifdef __undef_NR_OPEN # undef NR_OPEN # undef __undef_NR_OPEN #endif /* Have to remove LINK_MAX? */ #ifdef __undef_LINK_MAX # undef LINK_MAX # undef __undef_LINK_MAX #endif /* Have to remove OPEN_MAX? */ #ifdef __undef_OPEN_MAX # undef OPEN_MAX # undef __undef_OPEN_MAX #endif /* Have to remove ARG_MAX? */ #ifdef __undef_ARG_MAX # undef ARG_MAX # undef __undef_ARG_MAX #endif /* The number of data keys per process. */ #define _POSIX_THREAD_KEYS_MAX 128 /* This is the value this implementation supports. */ #define PTHREAD_KEYS_MAX 1024 /* Controlling the iterations of destructors for thread-specific data. */ #define _POSIX_THREAD_DESTRUCTOR_ITERATIONS 4 /* Number of iterations this implementation does. */ #define PTHREAD_DESTRUCTOR_ITERATIONS _POSIX_THREAD_DESTRUCTOR_ITERATIONS /* The number of threads per process. */ #define _POSIX_THREAD_THREADS_MAX 64 /* We have no predefined limit on the number of threads. */ #undef PTHREAD_THREADS_MAX /* Maximum amount by which a process can descrease its asynchronous I/O priority level. */ #define AIO_PRIO_DELTA_MAX 20 /* Minimum size for a thread. We are free to choose a reasonable value. */ #define PTHREAD_STACK_MIN 16384 /* Maximum number of timer expiration overruns. */ #define DELAYTIMER_MAX 2147483647 /* Maximum tty name length. */ #define TTY_NAME_MAX 32 /* Maximum login name length. This is arbitrary. */ #define LOGIN_NAME_MAX 256 /* Maximum host name length. */ #define HOST_NAME_MAX 64 /* Maximum message queue priority level. */ #define MQ_PRIO_MAX 32768 /* Maximum value the semaphore can have. */ #define SEM_VALUE_MAX (2147483647) --------------------------------------------------- I dont't know if it has anything to do with PTHREAD_THREADS_MAX as I was able to run different other threads like jetty / tomcat. I am not able to find out the values for PTHREAD_THREADS_MAX before the update - alle I know is that these files (limits.h, local_lim.h) have not changed with the provider's system update. I hope these informations can help you. Best regards, Malte -----Ursprüngliche Nachricht----- Von: Christian Mueller [mailto:chr...@ta...] Gesendet: Freitag, 13. November 2009 18:35 An: wra...@li... Betreff: Re: [Wrapper-user] Unable to create a timer thread Malte, good to hear that. The error you were seeing signaled that the system lacked the necessary resources to create another thread, or the system-imposed limit on the total number of threads in a process PTHREAD_THREADS_MAX would be exceeded. However it seems weird as the wrapper does not create that much threads when starting so it would get close to that limit usually. Do you have information about how the number of threads has been set before your provider applied those updates? I guess that was the reason but would like to be sure. We will try to increase the informative value of the message for a future release. Anyways, if you have some more questions please dont hesitate asking. Gruß, Christian -----Ursprüngliche Nachricht----- Von: Malte Hübner [mailto:hu...@in...] Gesendet: Samstag, 14. November 2009 00:47 An: wra...@li... Betreff: Re: [Wrapper-user] Unable to create a timer thread I'm in luck! Our hosting provider updated some system files this morning and the error has gone. The wrapper starts up as expected and everything is fine again :-) I think it could have been an issue with the Core i7 and gentoo - but I'm not sure. Best, Malte -----Ursprüngliche Nachricht----- Von: Malte Hübner [mailto:hu...@in...] Gesendet: Freitag, 13. November 2009 09:48 An: 'wra...@li...' Betreff: AW: [Wrapper-user] Unable to create a timer thread Leif, thank you for your response. Here are some details: - Linux (Gentoo 4.3.2-r3 p1.6, pie-10.1.5, gcc version 4.3.2) - i686 Intel(R) Core(TM) i7 CPU 950 @ 3.07GHz GenuineIntel GNU/Linux - Wrapper (Version 3.2.3) -> it's bundled with ActiveMQ but I also tried wrapper-linux-x86-32-3.3.6 with exactly the same result Thanks for your help! Malte -----Ursprüngliche Nachricht----- Von: Leif Mortenson [mailto:le...@ta...] Gesendet: Freitag, 13. November 2009 00:39 An: wra...@li... Betreff: Re: [Wrapper-user] Unable to create a timer thread Malte, This is not an error I have seen in the past. That code does not directly do anything with files either. Please let me know the OS, OS version, as well as the version of the Wrapper you are using. I will also go in and look over the code. Cheers, Leif On Thu, Nov 12, 2009 at 11:46 PM, Malte Hübner <hu...@in...> wrote: > Hi all, > > i am having big trouble to get the wrapper working on a linux machine. > The wrapper is not run as root user! > > Error output: > wrapper | Unable to create a timer thread: 11, No such file or directory > > Everything seems to be configured corretly. > The same setup is used on another machine and there is's working really > fine. > > Has anyone an idea which file or directory an not be found here? > > > Best, > Malte ---------------------------------------------------------------------------- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user ---------------------------------------------------------------------------- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user ---------------------------------------------------------------------------- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user |