Re: [Resin-interest] Resin 3.0 thread leak

2008-10-02 Thread Tom Hintz
Out of curiosity, is it safe to set the thread stack size to 1k on the  
load balance resin?

T
>>


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] Fwd: Resin 3.0 thread leak

2008-10-02 Thread Tom Hintz


I'll send a jstack separately directly to caucho.  The memory max
is set to 1M as you note.

T
___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Obtaining a PGConnection object

2008-10-02 Thread Scott Ferguson

On Oct 1, 2008, at 8:47 PM, Claire McLister wrote:

> Hi,
>
>  We have an application running on Tomcat and are evaluating
> migration to Resin.
>
>  One of the current sticking points is the use of Postgresql Large
> Objects. In the Tomcat configuration, we could use the
> 'allowAccesstoUnderlyingConnection' property to access the
> PGConnection object and use the large object API from there.

You can either use Resin's getConnection() method or the unwrap method,

Connection conn = _database.getConnection();

PGConnection pgConn = conn.unwrap(PGConnection.class);

or

PGConnection pgConn = (PGConnection) ((com.caucho.sql.UserConnection)  
conn).getConnection();

-- Scott

> It seems Resin supports the retrieval of the Connection object from
> the Datasource, but trying to cast it into a PGConnection gives an
> exception.


>
>
>  Can someone please tell us how we can use Large Object API from
> within the Resin container.
>
>  Thanks for any pointers.
>
> Claire
>
>
>
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Trying to use cxf scheme for remote-client fails

2008-10-02 Thread Scott Ferguson


On Oct 2, 2008, at 10:01 AM, Sashidhar Guduri wrote:

I got no replies on this question I sent a few days ago. http://wiki.caucho.com/CXF 
 claims one can configure a remote client with cxf. This does NOT  
work in resin 3.1.7. Anybody got this to work?


In 3.1, the classes are in ext-webapp-lib as resin-support.jar.  The  
support for third-party frameworks is outside of the standard resin.jar.


-- Scott



Thanks
Sashi

On Fri, Sep 26, 2008 at 2:16 PM, Sashidhar Guduri <[EMAIL PROTECTED]>  
wrote:
I am trying to create a remote-client with cxf and having trouble  
doing so. Here is the error I am getting:


com.caucho.config.types.BeanConfig.setUri(): 'cxf' is an unknown  
scheme for driver 'com.caucho.remote.client.ProtocolProxyFactory'.   
The available schemes are '[burlap, hessian]'


Resin documentation says it supports cxf. Is there something special  
I need to do to make cxf scheme available to resin?


Thanks
Sashi
--
Sashidhar Guduri, App Analyst Lead
UM Medical School Information Services

___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Minimum memory for resin?

2008-10-02 Thread Scott Ferguson

On Oct 2, 2008, at 1:01 PM, Heimo Laukkanen wrote:

> Hi,
>
> I was just looking for very cheap vps-servers for a private project
> and thought about what are reasonable minimum memory requirements for
> Resin?
>
> http://www.vanager.com/virtualrootserver/
>
> For example is it reasonable to think to run Resin with just 64 or  
> 128 megs?

You might look at Resin 3.2.1 with the -Dcaucho.smallmem option, which  
shrinks the normal buffer sizes for small memory environments.  With  
that setting (and minimal thread-max), 64m should be doable.

-- Scott


>
>
> -huima
>
>
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Leak with 3.0.23 load balancing

2008-10-02 Thread Scott Ferguson

On Oct 2, 2008, at 2:30 PM, Tom Hintz wrote:

> Thread count climbed steadily from a beginning of 70 to 300+ to  
> finally
> 500+ when heap was exhausted.

That's interesting.  It would explain the memory error.  If it's  
possible, a thread dump would really help.

Also, the 1M setting would help.   
Its main purpose is to prevent the JVM from continually spinning when  
memory is almost exhausted.  In that situation, a forced restart is  
better.

One issue, though, is that 3.0 is frozen, so other than configuration  
tweaks, any Resin code changes would be in 3.1 or 3.2.

-- Scott

>
>
> Tom
>
>
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Leak with 3.0.23 load balancing

2008-10-02 Thread Tom Hintz
Thread count climbed steadily from a beginning of 70 to 300+ to finally
500+ when heap was exhausted.

Tom


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] Leak with 3.0.23 load balancing

2008-10-02 Thread Tom Hintz
I'm seeing a configuration with one load balancer front-end running out
of heap serving six back-ends. No persistence store is configured if I
read the config correctly.  Is there a memory leak?


...






  



And so forth. (note: host is intentionally "localhost" in the example)

Java heap options:

/usr/jdk/instances/jdk1.6.0/bin/java -Xss1m -Xms200m -Xmx200m -Xrs

Heap after a couple days of operation:

using thread-local object allocation. 
Parallel GC with 8 thread(s) 
Heap Configuration: 
MinHeapFreeRatio = 40 
MaxHeapFreeRatio = 70 
MaxHeapSize = 209715200 (200.0MB) 
NewSize = 2228224 (2.125MB) 
MaxNewSize = 4294901760 (4095.9375MB) 
OldSize = 4194304 (4.0MB) 
NewRatio = 2 
SurvivorRatio = 8 
PermSize = 16777216 (16.0MB) 
MaxPermSize = 67108864 (64.0MB) 
Heap Usage: 
PS Young Generation 
Eden Space: 
capacity = 24707072 (23.5625MB) 
used = 21768 (0.02075958251953125MB) 
free = 24685304 (23.54174041748047MB) 
0.08810432899535808% used 
>From Space: 
capacity = 6356992 (6.0625MB) 
used = 0 (0.0MB) 
free = 6356992 (6.0625MB) 
0.0% used 
To Space: 
capacity = 9895936 (9.4375MB) 
used = 0 (0.0MB) 
free = 9895936 (9.4375MB) 
0.0% used 
PS Old Generation 
capacity = 142606336 (136.0MB) 
used = 90085336 (85.91207122802734MB) 
free = 52521000 (50.087928771972656MB) 
63.170640608843634% used 
PS Perm Generation 
capacity = 20971520 (20.0MB) 
used = 10724648 (10.227821350097656MB) 
free = 10246872 (9.772178649902344MB) 
51.13910675048828% used

Right before failure at under one week of operation we saw:

using thread-local object allocation. 
Parallel GC with 8 thread(s) 
Heap Configuration: 
MinHeapFreeRatio = 40 
MaxHeapFreeRatio = 70 
MaxHeapSize = 209715200 (200.0MB) 
NewSize = 2228224 (2.125MB) 
MaxNewSize = 4294901760 (4095.9375MB) 
OldSize = 4194304 (4.0MB) 
NewRatio = 2 
SurvivorRatio = 8 
PermSize = 16777216 (16.0MB) 
MaxPermSize = 67108864 (64.0MB) 
Heap Usage: 
PS Young Generation 
Eden Space: 
capacity = 14680064 (14.0MB) 
used = 14677200 (13.997268676757812MB) 
free = 2864 (0.0027313232421875MB) 
99.98049054827008% used 
>From Space: 
capacity = 11862016 (11.3125MB) 
used = 0 (0.0MB) 
free = 11862016 (11.3125MB) 
0.0% used 
To Space: 
capacity = 12451840 (11.875MB) 
used = 0 (0.0MB) 
free = 12451840 (11.875MB) 
0.0% used 
PS Old Generation 
capacity = 142606336 (136.0MB) 
used = 142606320 (135.8474121094MB) 
free = 16 (1.52587890625E-5MB) 
99.8878030216% used 
PS Perm Generation 
capacity = 16777216 (16.0MB) 
used = 10548616 (10.059944152832031MB) 
free = 6228600 (5.940055847167969MB) 
62.874650955200195% used

By 'failure' I mean the resin front-end is spending all it's time
garbage collecting instead of routing connections.

Thanks for any assistance.

Tom


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] Minimum memory for resin?

2008-10-02 Thread Heimo Laukkanen
Hi,

I was just looking for very cheap vps-servers for a private project
and thought about what are reasonable minimum memory requirements for
Resin?

http://www.vanager.com/virtualrootserver/

For example is it reasonable to think to run Resin with just 64 or 128 megs?

-huima


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] DB Persistent Sessions

2008-10-02 Thread Chad Cannell
You probably will have more in the DB until they are cleaned up. By
default resin cleans the expired persisted sessions every 75 minutes.

So you may have 30 active sessions in JMX, but 50 in the DB, 20 off
which are expired and will be cleaned out of the DB when they are not
updated for 75 minutes.





On Thu, 2008-10-02 at 15:40 -0400, Eric Kreiser wrote:

> No one else is using DB persisted session management???
> 
> Shouldn't these 2 numbers be logically in sync?
> 
> 
> 
> Eric Kreiser wrote: 
> 
> > I am running resin pro 3.1.6 with db persisted session.
> > 
> > Can anyone help me understand the following data I am seeing?
> > 
> > If I count the number of rows in the db in the persistent_session table
> > and get the SessionActiveCount from JMX for my server, I get 2 different
> > numbers.  I believe it could make sense for the numbers to be different
> > for instance after a restart... and java has not yet needed to load all
> > the sessions back into memory... but in this case the rows in the DB
> > would be more then the count returned by java.  What I am seeing is the
> > other way around.  My numbers reported by JAVA are significantly higher
> > then the number of rows I have persistently backing them.
> > 
> > How could this be?  Am I misunderstanding the expected behavior?
> > 
> > thanks
> > Eric
> > 
> > 
> > ___
> > resin-interest mailing list
> > resin-interest@caucho.com
> > http://maillist.caucho.com/mailman/listinfo/resin-interest
> > 
> >   
> 
> 
> 
> -- 
> 
> 
> Eric S. Kreiser
> Senior Software Architect
> 
> 
> Mzinga
> 5095 Ritter Road • Mechanicsburg, PA  17055
> ---
> Call my office: 717.458.9804
> Fax me: 717.790.0401
> Email me: [EMAIL PROTECTED]
> Learn more: http://mzinga.com/v/ekreiser/
> Toll Free: 800.869.5763 
> 
>  
> 
> 
> 
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Question about SessionImpl Logging

2008-10-02 Thread Eric Kreiser
I have seen other un-answered bug logged to this as well... 


Does anyone know what this message is trying to say?


Eric Kreiser wrote:
Can anyone explain what this log message is trying to tell me?  What 
triggers it?  What should I do about it?


[18:27:08.120]SessionImpl[abc0hfqSDgdsj_2WqEwYre3iHzZMfZbhNvCZQDk2EV9KGsC_EhF0McW2rasVM4rD8-tAVy0Kdup71uwvB1Keuf-iTx0UWUKA_aEI,] 
LRU while in use (use-count=1).  Consider increasing session-count.



--

*Eric S. Kreiser**
*Senior Software Architect


*M**z**inga**
*5095 Ritter Road • Mechanicsburg, PA  17055
---
*Call my office:* 717.458.9804
*Fax me:* 717.790.0401
*Email me:* [EMAIL PROTECTED] 
*Learn more:* http://mzinga.com/v/ekreiser/
*Toll Free:* 800.869.5763

 



--

*Eric S. Kreiser**
*Senior Software Architect


*M**z**inga**
*5095 Ritter Road • Mechanicsburg, PA  17055
---
*Call my office:* 717.458.9804
*Fax me:* 717.790.0401
*Email me:* [EMAIL PROTECTED] 
*Learn more:* http://mzinga.com/v/ekreiser/
*Toll Free:* 800.869.5763



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] DB Persistent Sessions

2008-10-02 Thread Eric Kreiser

No one else is using DB persisted session management???

Shouldn't these 2 numbers be logically in sync?



Eric Kreiser wrote:

I am running resin pro 3.1.6 with db persisted session.

Can anyone help me understand the following data I am seeing?

If I count the number of rows in the db in the persistent_session table
and get the SessionActiveCount from JMX for my server, I get 2 different
numbers.  I believe it could make sense for the numbers to be different
for instance after a restart... and java has not yet needed to load all
the sessions back into memory... but in this case the rows in the DB
would be more then the count returned by java.  What I am seeing is the
other way around.  My numbers reported by JAVA are significantly higher
then the number of rows I have persistently backing them.

How could this be?  Am I misunderstanding the expected behavior?

thanks
Eric


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

  


--

*Eric S. Kreiser**
*Senior Software Architect


*M**z**inga**
*5095 Ritter Road . Mechanicsburg, PA  17055
---
*Call my office:* 717.458.9804
*Fax me:* 717.790.0401
*Email me:* [EMAIL PROTECTED] 
*Learn more:* http://mzinga.com/v/ekreiser/
*Toll Free:* 800.869.5763



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Trying to use cxf scheme for remote-client fails

2008-10-02 Thread Sashidhar Guduri
I got no replies on this question I sent a few days ago.
http://wiki.caucho.com/CXF claims one can configure a remote client with
cxf. This does NOT work in resin 3.1.7. Anybody got this to work?
Thanks
Sashi

On Fri, Sep 26, 2008 at 2:16 PM, Sashidhar Guduri <[EMAIL PROTECTED]> wrote:

> I am trying to create a remote-client with cxf and having trouble doing so.
> Here is the error I am getting:
> com.caucho.config.types.BeanConfig.setUri(): 'cxf' is an unknown scheme for
> driver 'com.caucho.remote.client.ProtocolProxyFactory'.  The available
> schemes are '[burlap, hessian]'
>
> Resin documentation says it supports cxf. Is there something special I need
> to do to make cxf scheme available to resin?
>
> Thanks
> Sashi
> --
> Sashidhar Guduri, App Analyst Lead
> UM Medical School Information Services
>
___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] java.lang.IllegalStateException: block at ffffffffc0000000 is invalid for file

2008-10-02 Thread Scott Ferguson

On Oct 1, 2008, at 11:46 PM, Tuan Tran wrote:

> Hi all,
>
> After some hours of running Resin i get this exception,
>
> [nnection.java:389)
> [01:29:02.987]  at
> com.caucho.util.ThreadPool.runTasks(ThreadPool.java:507)
> [01:29:02.987]  at com.caucho.util.ThreadPool.run(ThreadPool.java:433)
> [01:29:02.987]  at java.lang.Thread.run(Thread.java:595)
>
> This exception keeps going, after a while i get a nasty java heap  
> space
> out of memory. We are running Resin version 3.0.19. Is there a way to
> fix this?

You either need to upgrade to a 3.1.x version or switch to the jdbc  
store for sessions.  3.1.x fixed a large number of issues with our  
session backing store.

-- Scott

>
>
> Best regards,
>
> Tuan.
>
>
>
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Resin 3.2.0 and Eclipse Ganymede

2008-10-02 Thread Riccardo Cohen
last time I tried it failed also, and I don't think there is a workaround...

Stephen M. Bennett wrote:
> Hello all,
> 
> I am new to Resin, and I am keen to develop for Resin using Eclipse.  I 
> have tried to get the Eclipse plugin, from Maven, to work, but it is 
> giving me an error. Does the Eclipse plugin from 
> http://caucho.com/m2/com/caucho/resin-eclipse/3.2.0/ work with Eclipse 
> Ganymede (the current JEE developers version)?
> 
>  
> 
> When I try to create a Dynamic Web Project I get
> 
>  
> 
> "failed while installing Dynamic Web Module 2.5" with "Build path 
> contains duplicate entry: 'C:java/resin-3.2.0/lib/resind.jar' for 
> project ..."
> 
>  
> 
> The project is created but it does not have the Resin server in it, and 
> I cannot then run my project against my Resin server.
> 
>  
> 
> There are a number of things that have not looked right along the way:
> 
>  
> 
> 1) There is no documentation on how to use/install this plugin. One of 
> the links on the caucho Wiki for Eclipse does not exist, and the other 
> is for an old release. In the end I just copied the jar to my Eclipse 
> plugins directory. Perhaps some additional steps are required?
> 
>  
> 
> 2) The Eclipse plugin introduces a Resin 3.1 server, not a Resin 3.2 
> server. (This suggests the plugin has not been updated for 3.2, and 
> hence might not be compatible?).
> 
>  
> 
> 3) The reference to the plugin is a quick line in the changes for Resin 
> 3.2, and the Resin 3.2 documentation does not mention it propertly, 
> which leads me to wonder what the status of the plugin is.
> 
>  
> 
> I then used the Eclipse Generic Server to run Resin, and that works for 
> running a dynamic web project, but does not work for debug.  (It runs 
> but the breakpoints are not obeyed).
> 
>  
> 
> I'm sure many people would agree that Eclipse support for Resin is vital 
> for Resin's continued use. Who can fix the above, or tell me what I have 
> got wrong?
> 
>  
> 
> Kind Regards,
> Stephen
> 
>  
> 
>  
>  
> EMCC Software Ltd, Head and Registered office: 5 Commerce Way, Avocado 
> Court, Westinghouse Road, Manchester, M17 1HW. Registered in Cardiff, UK 
> with No. 370. www.emccsoft.com 
> 
> Disclaimer: This email and its attachments may be confidential and are 
> intended solely for the use of the individual to whom it is addressed. 
> Any views or opinions expressed are solely those of the author and do 
> not necessarily represent those of EMCC Software. If you are not the 
> intended recipient of this email and its attachments, you must take no 
> action based upon them, nor must you copy or show them to anyone, please 
> delete this email and its attachments immediately. Please contact the 
> sender if you believe you have received this email in error.
> 
> This e-mail message has been scanned for Viruses and Content and cleared 
> by *MailMarshal *
> 
> 
> 
> 
> 
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest

-- 
Riccardo Cohen
Architecte du Logiciel
http://www.architectedulogiciel.fr
+33 (0)6.09.83.64.49



___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] Resin 3.2.0 and Eclipse Ganymede

2008-10-02 Thread Stephen M. Bennett
Hello all,
I am new to Resin, and I am keen to develop for Resin using Eclipse.  I have 
tried to get the Eclipse plugin, from Maven, to work, but it is giving me an 
error. Does the Eclipse plugin from 
http://caucho.com/m2/com/caucho/resin-eclipse/3.2.0/ work with Eclipse Ganymede 
(the current JEE developers version)?

When I try to create a Dynamic Web Project I get

"failed while installing Dynamic Web Module 2.5" with "Build path contains 
duplicate entry: 'C:java/resin-3.2.0/lib/resind.jar' for project ..."

The project is created but it does not have the Resin server in it, and I 
cannot then run my project against my Resin server.

There are a number of things that have not looked right along the way:

1) There is no documentation on how to use/install this plugin. One of the 
links on the caucho Wiki for Eclipse does not exist, and the other is for an 
old release. In the end I just copied the jar to my Eclipse plugins directory. 
Perhaps some additional steps are required?

2) The Eclipse plugin introduces a Resin 3.1 server, not a Resin 3.2 server. 
(This suggests the plugin has not been updated for 3.2, and hence might not be 
compatible?).

3) The reference to the plugin is a quick line in the changes for Resin 3.2, 
and the Resin 3.2 documentation does not mention it propertly, which leads me 
to wonder what the status of the plugin is.

I then used the Eclipse Generic Server to run Resin, and that works for running 
a dynamic web project, but does not work for debug.  (It runs but the 
breakpoints are not obeyed).

I'm sure many people would agree that Eclipse support for Resin is vital for 
Resin's continued use. Who can fix the above, or tell me what I have got wrong?

Kind Regards,
Stephen


EMCC Software Ltd, Head and Registered office: 5 Commerce Way, Avocado Court, 
Westinghouse Road, Manchester, M17 1HW. Registered in Cardiff, UK with No. 
370. www.emccsoft.com

Disclaimer: This email and its attachments may be confidential and are intended 
solely for the use of the individual to whom it is addressed. Any views or 
opinions expressed are solely those of the author and do not necessarily 
represent those of EMCC Software. If you are not the intended recipient of this 
email and its attachments, you must take no action based upon them, nor must 
you copy or show them to anyone, please delete this email and its attachments 
immediately. Please contact the sender if you believe you have received this 
email in error.

#
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
#
___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest