This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 26711 - IDE starts to send duplicated requests.
Summary: IDE starts to send duplicated requests.
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: -S1S-
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2002-08-22 14:47 UTC by Sergey Soldatov
Modified: 2006-02-27 16:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Attaching jsp-tests.war (525.76 KB, application/octet-stream)
2003-01-29 14:20 UTC, Petr Jiricka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Soldatov 2002-08-22 14:47:50 UTC
Mount watchdog's unpacked jsp-tests.war
explore nodes jsp->core_syntax->actions->forward and start execute all jsp one by one. 
Use only 'Execute' but not 'Execute (Force Reload). 
Check access_log file. You will find that every new request generated more than one time. For 
example I have following log:
127.0.0.1 - - [22/Aug/2002:17:18:09 3000] "GET 
/jsp/core_syntax/actions/forward/forwardcommon.jsp HTTP/1.1" 200 90
127.0.0.1 - - [22/Aug/2002:17:18:18 3000] "GET 
/jsp/core_syntax/actions/forward/forwardcommonXML.jsp HTTP/1.1" 200 90
127.0.0.1 - - [22/Aug/2002:17:18:18 3000] "GET 
/jsp/core_syntax/actions/forward/forwardcommonXML.jsp HTTP/1.1" 200 90
127.0.0.1 - - [22/Aug/2002:17:18:33 3000] "GET 
/jsp/core_syntax/actions/forward/positiveForwardCtxRelative.jsp HTTP/1.1" 200 95
127.0.0.1 - - [22/Aug/2002:17:18:33 3000] "GET 
/jsp/core_syntax/actions/forward/positiveForwardCtxRelative.jsp HTTP/1.1" 200 95
127.0.0.1 - - [22/Aug/2002:17:18:33 3000] "GET 
/jsp/core_syntax/actions/forward/positiveForwardCtxRelative.jsp HTTP/1.1" 200 95
127.0.0.1 - - [22/Aug/2002:17:18:46 3000] "GET 
/jsp/core_syntax/actions/forward/positiveForwardCtxRelativeHtml.jsp HTTP/1.1" 200 83
127.0.0.1 - - [22/Aug/2002:17:18:46 3000] "GET 
/jsp/core_syntax/actions/forward/positiveForwardCtxRelativeHtml.jsp HTTP/1.1" 200 83
127.0.0.1 - - [22/Aug/2002:17:18:46 3000] "GET 
/jsp/core_syntax/actions/forward/positiveForwardCtxRelativeHtml.jsp HTTP/1.1" 200 83
127.0.0.1 - - [22/Aug/2002:17:18:46 3000] "GET 
/jsp/core_syntax/actions/forward/positiveForwardCtxRelativeHtml.jsp HTTP/1.1" 200 83
Comment 1 Damian Frach 2002-09-06 18:58:29 UTC
probably the internet browser request is called a twice
Comment 2 Sergey Soldatov 2002-09-07 10:08:08 UTC
I don't think so. I've tried all possible browsers and 
exactly the same result. Every new request generated 
n+1 'GET'
Comment 3 Damian Frach 2002-09-09 14:07:17 UTC
> probably the internet browser request is called a twice

the IDE makes this request; so probably the IDE calls it twice, but it
should calls it only once
Comment 4 Petr Jiricka 2003-01-22 15:46:46 UTC
This looks it could affect performance.
Comment 5 _ rkubacki 2003-01-23 13:20:18 UTC
Can you attach the WAR? I can't reproduce it.
Comment 6 Petr Jiricka 2003-01-29 14:20:10 UTC
Created attachment 8720 [details]
Attaching jsp-tests.war
Comment 7 Petr Jiricka 2003-01-29 14:21:58 UTC
The log actually contains correct output (each request 
only once), the problem is that in the IDE output window 
it is displayed multiple times. So each request is only 
sent once, but the IDE is displaying it wrong - at least 
on Win2000.

Comment 8 Petr Jiricka 2003-02-20 13:37:25 UTC
Reassigning to Milan, since he was working on the logs 
displaying.
Comment 9 Milan Kuchtiak 2003-02-20 16:09:18 UTC
The bug was rather serious - it is reproducible on any web  
module when two or more JSP files are executed.

Each execution inside the web module caused that 
new "scribbler" thread was created. The role of those 
threads is to copy the text from log files to the output 
window when log file size is changed.
Each thread is related to one particular log file.

In our case each JSP execution (inside the same web module)
created the new thread (related the same log file) and this 
caused the duplicity. Thus, two or more threads read the 
same log file.

The bug was fixed. The "thread pool" is checked for log 
file name before new thead is created.
Comment 10 Jaroslav Pospisil 2006-02-27 16:01:26 UTC
VERIFIED