tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 6907] - jsp compiler not synchronized
Date Wed, 06 Mar 2002 13:52:43 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6907>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6907

jsp compiler not synchronized





------- Additional Comments From dylans@xs4all.nl  2002-03-06 13:52 -------
I tried to work around this problem by synchronizing access to the java 
compiler, however this only reduces the problem. since the java sourcecode
is generated again and again until it compiles. So 1 thread is busy compiling
while another is trying to overwrite the source code. Scenario:

2 clients access the same page at approximately the same time
Thread 1: Generate Java code ( class not found )
Thread 2: Generate Java code ( class not found )
Thread 1: write classfile to disk
Thread 2: write classfile to dist ( fails because file is in use )
Thread 1: Generate Java code ( source is newer because of Thread 2 )
Thread 1: Compile Java code ( again! )

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message