Threading problem?

Threading problem?

Post by sowb » Sat, 28 Jun 2003 22:40:38



I am using the crontab to call a shell script that starts Ant.  During
the Ant build, it calls another shell script that calls a simple java
application.  The log file I specified in the ant call is getting this
error:

     [exec] java.lang.NullPointerException
     [exec]    at 0x40233e12: _Jv_ThrowSignal (/usr/lib/libgcj.so.3)
     [exec]    at 0x40233e46: ?? (??:0)
     [exec]    at 0xbfffe24c: ?? (??:0)
     [exec]    at 0x402423b4: _Jv_ResolvePoolEntry(java.lang.Class,
int) (/usr/lib/libgcj.so.3)
     [exec]    at 0x402494d9:
_Jv_InterpMethod.continue1(_Jv_InterpMethodInvocation)
(/usr/lib/libgcj.so.3)
     [exec]    at 0x40249e34: _Jv_InterpMethod.run(ffi_cif, void,
ffi_raw, _Jv_InterpMethodInvocation) (/usr/lib/libgcj.so.3)
     [exec]    at 0x40247424: _Jv_InterpMethod.run_normal(ffi_cif,
void, ffi_raw, void) (/usr/lib/libgcj.so.3)
     [exec]    at 0x4039e1bc: ?? (??:0)
     [exec]    at 0x4039e347: ffi_call_SYSV (/usr/lib/libgcj.so.3)
     [exec]    at 0x4039e307: ffi_raw_call (/usr/lib/libgcj.so.3)
     [exec]    at 0x40249528:
_Jv_InterpMethod.continue1(_Jv_InterpMethodInvocation)
(/usr/lib/libgcj.so.3)
     [exec]    at 0x40249e34: _Jv_InterpMethod.run(ffi_cif, void,
ffi_raw, _Jv_InterpMethodInvocation) (/usr/lib/libgcj.so.3)
     [exec]    at 0x40247424: _Jv_InterpMethod.run_normal(ffi_cif,
void, ffi_raw, void) (/usr/lib/libgcj.so.3)
     [exec]    at 0x4039e1bc: ?? (??:0)
     [exec]    at 0x4039e347: ffi_call_SYSV (/usr/lib/libgcj.so.3)
     [exec]    at 0x4039e307: ffi_raw_call (/usr/lib/libgcj.so.3)
     [exec]    at 0x40249528:
_Jv_InterpMethod.continue1(_Jv_InterpMethodInvocation)
(/usr/lib/libgcj.so.3)
     [exec]    at 0x40249e34: _Jv_InterpMethod.run(ffi_cif, void,
ffi_raw, _Jv_InterpMethodInvocation) (/usr/lib/libgcj.so.3)
     [exec]    at 0x40247424: _Jv_InterpMethod.run_normal(ffi_cif,
void, ffi_raw, void) (/usr/lib/libgcj.so.3)
     [exec]    at 0x4039e1bc: ?? (??:0)
     [exec]    at 0x4025c308: gnu.gcj.runtime.FirstThread.call_main()
(/usr/lib/libgcj.so.3)
     [exec]    at 0x402c70b1: gnu.gcj.runtime.FirstThread.run()
(/usr/lib/libgcj.so.3)
     [exec]    at 0x40268fdc: _Jv_ThreadRun(java.lang.Thread)
(/usr/lib/libgcj.so.3)
     [exec]    at 0x4023578c: _Jv_RunMain(java.lang.Class, byte const,
int, byte const, boolean) (/usr/lib/libgcj.so.3)
     [exec]    at 0x08048900: ?? (??:0)
     [exec]    at 0x420158f7: __libc_start_main (/lib/i686/libc.so.6)
     [exec]    at 0x080486c1: ?? (??:0)

Now this only happens when it is scheduled to run on the crontab.  If
I invoke the start up script directly from a shell, it runs fine with
no errors.  I am trying to run this on Red Hat 8.0.  This process had
been running previously on Red Hat 7.3 and running perfectly on the
crontab.  I noticed that RH7 has libgcj.so.2 instead of libgcjso.3 as
on RH8 which is where all the errors above are directed toward.  Can
anyone tell me if this is a bug in libgcj.so.3 or anything about what
is going on here?  Thanks in advance.

 
 
 

Threading problem?

Post by sowb » Sun, 29 Jun 2003 03:25:39


Stupid me the path variable  was PATH=$PATH:/$JAVA_HOME/bin instead of
PATH=/$JAVA_HOME/bin:$PATH so it was using the wrong virtual machine.

live and learn
sowbug
-----------------------------------------------------


> I am using the crontab to call a shell script that starts Ant.  During
> the Ant build, it calls another shell script that calls a simple java
> application.  The log file I specified in the ant call is getting this
> error:

>      [exec] java.lang.NullPointerException
>      [exec]    at 0x40233e12: _Jv_ThrowSignal (/usr/lib/libgcj.so.3)
>      [exec]    at 0x40233e46: ?? (??:0)
>      [exec]    at 0xbfffe24c: ?? (??:0)
>      [exec]    at 0x402423b4: _Jv_ResolvePoolEntry(java.lang.Class,
> int) (/usr/lib/libgcj.so.3)
>      [exec]    at 0x402494d9:
> _Jv_InterpMethod.continue1(_Jv_InterpMethodInvocation)
> (/usr/lib/libgcj.so.3)
>      [exec]    at 0x40249e34: _Jv_InterpMethod.run(ffi_cif, void,
> ffi_raw, _Jv_InterpMethodInvocation) (/usr/lib/libgcj.so.3)
>      [exec]    at 0x40247424: _Jv_InterpMethod.run_normal(ffi_cif,
> void, ffi_raw, void) (/usr/lib/libgcj.so.3)
>      [exec]    at 0x4039e1bc: ?? (??:0)
>      [exec]    at 0x4039e347: ffi_call_SYSV (/usr/lib/libgcj.so.3)
>      [exec]    at 0x4039e307: ffi_raw_call (/usr/lib/libgcj.so.3)
>      [exec]    at 0x40249528:
> _Jv_InterpMethod.continue1(_Jv_InterpMethodInvocation)
> (/usr/lib/libgcj.so.3)
>      [exec]    at 0x40249e34: _Jv_InterpMethod.run(ffi_cif, void,
> ffi_raw, _Jv_InterpMethodInvocation) (/usr/lib/libgcj.so.3)
>      [exec]    at 0x40247424: _Jv_InterpMethod.run_normal(ffi_cif,
> void, ffi_raw, void) (/usr/lib/libgcj.so.3)
>      [exec]    at 0x4039e1bc: ?? (??:0)
>      [exec]    at 0x4039e347: ffi_call_SYSV (/usr/lib/libgcj.so.3)
>      [exec]    at 0x4039e307: ffi_raw_call (/usr/lib/libgcj.so.3)
>      [exec]    at 0x40249528:
> _Jv_InterpMethod.continue1(_Jv_InterpMethodInvocation)
> (/usr/lib/libgcj.so.3)
>      [exec]    at 0x40249e34: _Jv_InterpMethod.run(ffi_cif, void,
> ffi_raw, _Jv_InterpMethodInvocation) (/usr/lib/libgcj.so.3)
>      [exec]    at 0x40247424: _Jv_InterpMethod.run_normal(ffi_cif,
> void, ffi_raw, void) (/usr/lib/libgcj.so.3)
>      [exec]    at 0x4039e1bc: ?? (??:0)
>      [exec]    at 0x4025c308: gnu.gcj.runtime.FirstThread.call_main()
> (/usr/lib/libgcj.so.3)
>      [exec]    at 0x402c70b1: gnu.gcj.runtime.FirstThread.run()
> (/usr/lib/libgcj.so.3)
>      [exec]    at 0x40268fdc: _Jv_ThreadRun(java.lang.Thread)
> (/usr/lib/libgcj.so.3)
>      [exec]    at 0x4023578c: _Jv_RunMain(java.lang.Class, byte const,
> int, byte const, boolean) (/usr/lib/libgcj.so.3)
>      [exec]    at 0x08048900: ?? (??:0)
>      [exec]    at 0x420158f7: __libc_start_main (/lib/i686/libc.so.6)
>      [exec]    at 0x080486c1: ?? (??:0)

> Now this only happens when it is scheduled to run on the crontab.  If
> I invoke the start up script directly from a shell, it runs fine with
> no errors.  I am trying to run this on Red Hat 8.0.  This process had
> been running previously on Red Hat 7.3 and running perfectly on the
> crontab.  I noticed that RH7 has libgcj.so.2 instead of libgcjso.3 as
> on RH8 which is where all the errors above are directed toward.  Can
> anyone tell me if this is a bug in libgcj.so.3 or anything about what
> is going on here?  Thanks in advance.


 
 
 

1. Netscape Enterprise Server - cache and threads problems

Hi,

Is there anybody who can help us with these questions ?

We have installed and configured Netscape Enterprise Server 3.5.1 on
a Sun (Solaris 2.5.1) with all the patches required for Solaris and
the Enterprise/Admin server installed.

We've configured some Software Virtual Servers as we have a lot of
users who will use our webserver as webhosting.
We are still testing the server and intend to put it on the Net
as soon as we can solve some problems.

Here are the problems: Cache and Threads

1. Cache

We turned on the cache, but we think it has not been used.

-------------------------------------------------------------
We have these lines in the obj.conf:

Init fn="cache-init" disable="false"
Init fn="cache-init" MaxNumberOfCachedFiles="4096"
Init fn="cache-init" MaxNumberOfOpenCachedFiles="4096"
Init fn="cache-init" MaxTotalCachedFileSize="20000"
Init fn="cache-init" pollInterval="100"
Init fn="cache-init" MaxCachedFileSize="537600"
Init fn="dns-cache-init"
Init fn="cache-init" cache-size="1000"

And we can see these on the error log

[18/Nov/1998:12:30:01] verbose: file-cache: enabled = on
[18/Nov/1998:12:30:01] verbose: file-cache: MaxNumberOfCachedFiles 4096
(0x1
000)
[18/Nov/1998:12:30:01] verbose: file-cache: CacheHashSize 8192 (0x2000)
[18/Nov/1998:12:30:01] verbose: file-cache: MaxNumberOfOpenCachedFiles
512 (
0x200)
--------------------------------------------------------------------

Observing the PERFDUMP we noticed that in the Cache Info we have :

CacheInfo:
------------------
enabled             yes
CacheEntries        0/4096
CacheSize(bytes)    0/10485760

Hit Ratio           0/63 (  0.00)
pollInterval        5
maxFileSize         537600
----------------------------------------------------------

We could say that we always have all the itens with 0/xxx
The Hit Ratio always like 0/x  0/x+1 0/x+2 . We have the value on x
changing at any new request. But the percentage is always like that
(0.00).

Is that happening because we have very few requests as we are only
in the test phase ?

2. Threads problems

   We observed that the BusyThreads are ALWAYS in 1 (one) and the
   WaitingThreads almost with the same value as the ActiveThreads.
   We should expect to have the BusyThreads near the ActiveThreads
   and the Waiting in 1 or something like that.

Here is the PERFDUMP output:

ListenSocket #0:
------------------
Address           https:\\xxx.xxx.xxx.xxx:80
ActiveThreads     53
WaitingThreads    52
BusyThreads       1
IdleThreads       0

Thread limits     48/512

 ----------------

We would appreciate very much anyone who could answer us.

Nazareth Pimentel

2. Win2K to CUPS no SMB

3. Thread problem in XS code on Linux

4. Looking for advice, opnions, assistance...

5. 4.7, JDK1.3.1p7 native thread problem

6. How to set up .mailrc ?

7. Digital UNIX ver3.x Thread Problem

8. NIS & Shadow

9. g++ 3.0.3/libstdc++-v3 thread problem - help, please

10. Threads problem! Please advice...

11. More on Thread problem in XS code on Linux

12. mysql crashing. thread problem?

13. Thread problem in Solaris 2.3