Re: threads vs. servlets

2015-03-10 Thread David Bullock
On 11 March 2015 at 04:43, Christopher Schultz wrote: Basically, making a > servlet threadsafe only requires you to avoid any non-threadsafe class > members in the servlet itself... > Since we're tossing pennies, I've often wondered how the app-server achieves the effect that any instance-level

Re: Sporadic HTTP 403 returned by Tomcat when this should not happen ever. How to find out why this happens?

2015-02-05 Thread David Bullock
On 6 February 2015 at 02:42, Brian wrote: > Hi, > > I have a Restful service that receives a huge amount of HTTP requests per > day. In some of these requests, Tomcat returns an HTTP 403 error status. > Your servlet does something which throws a java.lang.Security exception (which is a runtime e

Re: BLOCKED reaper thread (and all other BLOCKED threads) waiting on one thread that is BLOCKED waiting on that reaper thread

2014-10-29 Thread David Bullock
Seems like BMC have a lock-ordering problem leading to deadlock. What's it got to do with Tomcat? *David BullockMachaira Enterprises Pty Ltd* PO Box 31 Canowindra NSW 2804 02 6344 1100 http://machaira.com.au/ On 30 October 2014 11:39, vbck wrote: > "MidTier-ServerReaper-name.domain.com" -

Re: Tomcat 7 cannot get ciphers with SHA256 or SHA384

2014-05-22 Thread David Bullock
NSA: "So, how much do you want to not actually *use* string ciphers with perfect forward secrecy"? Mozilla,Google,Opera,et-al: "Hey, that's a business model RIGHT THERE! How much do you even have?" NSA: "How about, not being put out of business permanently, family members keeping up their low i

Re: Non-Blocking IO Write Issue

2013-12-29 Thread David Bullock
/org/apache/coyote/http11/Http11NioProcessor.java?r1=1478576&r2=1478714&diff_format=h Reading the source code and the repository, it seems there has been a *lot* of activity around this async stuff in the codebase, and you may well get different test results with a more modern version of the trunk. chee

Re: Non-Blocking IO Write Issue

2013-12-23 Thread David Bullock
On 24 December 2013 07:58, Daniel Mikusa wrote: > On Dec 19, 2013, at 8:08 PM, David Bullock > wrote: > >> On 20 December 2013 04:10, Daniel Mikusa wrote: > Unfortunately, once this problem starts to occur onWritePossible doesn't get > called back. > When I t

Re: Non-Blocking IO Write Issue

2013-12-19 Thread David Bullock
On 20 December 2013 04:10, Daniel Mikusa wrote: > When run, you'll see that it processes some of the requests but fails due to > a timeout. I've not been able to replicate the other exceptions with the > unit test though, so those may be unrelated. > @WebServlet(asyncSupported = true) >

Re: [OT] Symantic has a first tomcat worm ;-)

2013-11-26 Thread David Bullock
On 25 November 2013 23:27, Ognjen Blagojevic wrote: > What most users do is to copy the XML example, and paste it into > tomcat-users.xml. > > I propose that 401 page for Manager be dynamically generated, so that > instead of occurrences of example password "s3cret", it generates random > passwor

Re: Tomcat connection pool "bleeding" under heavy load

2013-11-20 Thread David Bullock
Oh, and 'throw e;' at the end of the handler :-) David Bullock Machaira Enterprises Pty Ltd PO Box 31 Canowindra NSW 2804 02 6344 1100 http://machaira.com.au/ On 21 November 2013 11:48, David Bullock wrote: > Line 150 of org.apache.tomcat.jdbc.pool.FairBlockingQu

Re: Tomcat connection pool "bleeding" under heavy load

2013-11-20 Thread David Bullock
} 166} 167 return result; 168} David Bullock Machaira Enterprises Pty Ltd PO Box 31 Canowindra NSW 2804 02 6344 1100 http://machaira.com.au/ On 21 November 2013 04:58, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Marko, &g

Re: Tomcat connection pool "bleeding" under heavy load

2013-11-19 Thread David Bullock
Marko wrote: > In that case debugging looks like the only option? Nobody yet disputed: > The 'leakiness' of the pool is actually in > org.apache.tomcat.jdbc.pool.FairBlockingQueue#poll() > If the line (!c.await(timeout, unit)) exits via an > InterruptedException, the the 'exchangecountdownlatc

Re: Tomcat connection pool "bleeding" under heavy load

2013-11-19 Thread David Bullock
On 19 November 2013 14:59, Caldarale, Charles R wrote: >> From: David Bullock [mailto:david.bull...@machaira.com.au] >> Subject: Re: Tomcat connection pool "bleeding" under heavy load > >> In PooledConnection#borrow(int,String,String) when handling >> Inte

Re: Tomcat connection pool "bleeding" under heavy load

2013-11-18 Thread David Bullock
ying to acquire a connection gets issued aWorkerThread.interrupt() for taking too long. So adjusting some timeout settings (to make Tomcat more patient than the connection pool) should give a workaround. DBCP had a better grasp of what was going on when reporting this. cheers, David David Bullock

Re: Servlet init method called multiple times

2013-10-23 Thread David Bullock
configured in logging.properties. cheers, David. *David Bullock Machaira Enterprises Pty Ltd * PO Box 31 Canowindra NSW 2804 02 6344 1100 http://machaira.com.au/ On 23 October 2013 09:57, Richard Pierce wrote: > The init() method of all of my servlets is being called every 10 seconds > o

Re: is the Tomcat-7 WsRemoteEndpointImplBase send methods threadsafe, or should we be synchronizing until the Future<>.get() returns?

2013-10-21 Thread David Bullock
fication. I did my bit recently at https://java.net/jira/browse/SERVLET_SPEC-81 cheers, David Bullock - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: In Tomcat JULI, do the 'facility specific' loggers become per-webapp logger roots?

2013-10-09 Thread David Bullock
On 9 October 2013 23:33, Christopher Schultz wrote: > On 10/8/13 11:03 PM, David Bullock wrote: > > Please answer at Stackoverflow, and I'll report the results back to > > this list: > > > http://stackoverflow.com/questions/19261727/in-tomcat-juli-do-the-facilit

In Tomcat JULI, do the 'facility specific' loggers become per-webapp logger roots?

2013-10-08 Thread David Bullock
-general mechanism for allowing a deployer (remember those things called 'roles' from the EJB 1.0 spec, anyone?) to override configuration settings which have unfortunately been embedded in the WAR file, I'd **love** to know about it. I haven't spotted anything about this in the Tomcat doco so far. thanks, *David Bullock*