I observed a similiar behavior unfrequently. I think that is happening
while printing PDF Files, but I may be wrong.

For example here is a job from our queue "lex1200c":

The status file status.lex1200c in the spool directory shows entries
like this:

status.lex1200c:waiting for subserver to exit at 2002-03-19-12:05:50.834 ## A=<NULL> 
number=0 process=19717
status.lex1200c:waiting for subserver to exit at 2002-03-19-12:06:09.859 ## A=<NULL> 
number=0 process=19717
status.lex1200c:waiting for subserver to exit at 2002-03-19-12:06:28.955 ## A=<NULL> 
number=0 process=19717
status.lex1200c:waiting for subserver to exit at 2002-03-19-12:06:47.415 ## A=<NULL> 
number=0 process=19717
status.lex1200c:waiting for subserver to exit at 2002-03-19-12:07:06.204 ## A=<NULL> 
number=0 process=19717
status.lex1200c:waiting for subserver to exit at 2002-03-19-12:07:24.879 ## A=<NULL> 
number=0 process=19717
status.lex1200c:waiting for subserver to exit at 2002-03-19-12:07:43.371 ## A=<NULL> 
number=0 process=19717
status.lex1200c:waiting for subserver to exit at 2002-03-19-12:08:02.400 ## A=<NULL> 
number=0 process=19717
status.lex1200c:waiting for subserver to exit at 2002-03-19-12:08:21.265 ## A=<NULL> 
number=0 process=19717
status.lex1200c:waiting for subserver to exit at 2002-03-19-12:08:39.722 ## A=<NULL> 
number=0 process=19717

while the account file "acct" shows that it took some time to print the
job:

jobstart '-Jpisa.pdf' '-Plex1200c' '-kcfA001KOERBERNB.erzwiss.uni-hamburg.de' 
'-b29593527' '-HKOERBERNB.erzwiss.uni-hamburg.de' '-t2002-03-19-11:48:58.000'  
'-nfe3a002'
filestart '-q19061' '-p53347' '-t2002-03-19-11:53:22.233' '-nfe3a002' '-Plex1200c'
fileend '-b240' '-T1588' '-q19061' '-p53587' '-t2002-03-19-12:19:50.866' '-nfe3a002' 
'-Plex1200c'
jobend '-Jpisa.pdf' '-Plex1200c' '-kcfA001KOERBERNB.erzwiss.uni-hamburg.de' 
'-b29593527' '-HKOERBERNB.erzwiss.uni-hamburg.de' '-t2002-03-19-12:19:50.000' 
'-Lfe3a002' '-nfe3a002'

We observed that sometimes the connected lpd process is consuming much cpu time
while these "subserver"-messages are written into status.*
Some jobs actually never get finished and must be cancelled.

For these (very rare) cases I wrote a short shell script which is looking
for "lpd (Worker...)" processes that have consumed more than 5 min cpu
time. Such a process is sent a "kill -9" and so the job is cancelled.

Regards,

Thies Meincke

+----------------------------+-------------------------------------------+
| Thies Meincke              | Tel.  : 040/42838-6355 (BN: 0.42838-6355) |
| Universitaet Hamburg       | Fax   : 040/42838-6270 (BN: 0.42838-6270) |
| Regionales Rechenzentrum   | E-mail: [EMAIL PROTECTED]        |
| Schlueterstr. 70           | URL   : http://www.rrz.uni-hamburg.de/    |
| 20146 Hamburg              |         RRZ/Personal/TMeincke.html        |
+----------------------------+-------------------------------------------+

On Tue, 19 Mar 2002, Sergij Kovalenko wrote:

> Hi,
>
> The problem appeared 3 month ago.  We were running LPRng-3.3.2?. Then I tried 
>versions 3.7.4, 3.8.4
> and 3.8.9 on Solaris 2.6 and 8.
> The result and behavior is the same on all  versions of OS and LPRng.
>
> Text files are sent in a bounce queue in which they are processed using my filter,
> then files are sent in other queue. The first several files are printed without 
>problems. At some
> time lately 'lpq'
> reports in original queue - job is 'active'(or later 'staled'), in other printer 
>queue - job is
> 'incoming'. Restarting of LPRng and
> other operations on queue dom't   help.
>
> If I remove filter processing from printcap, the problem disappears.
>
> Had anybody else such problem and resolved it?
> Could  it be a problem of Solaris?
> How can I debug LPRng in this situation?.
>
> Output of "lpq":
>
> swadm03# lpq -Prezdruck1
> Printer: rezdruck1@swadm03 (dest xn2825-m202@localhost)
>  Queue: 2 printable jobs
>  Server: pid 17974 active
>  Unspooler: pid 17975 active
>  Status: waiting for subserver to exit at 17:01:20.147
>  Filter_status: rezdruck_filter: Job finished. Run time: 0:1
>  Rank   Owner/ID                  Class Job Files                 Size Time
> stalled(1949sec) ==rezdruck@stielow+286.2.1 A 287 texc3.r1709462  4640 16:38:41
> 2      ==rezdruck@stielow+287.2.1   A   288 texc3.r1709463        9011 16:38:43
> done   ==rezdruck@stielow+285.2.1   A   286 texc3.r1709461        7895 16:38:39
> Printer: xn2825-m202@swadm03
>  Queue: no printable jobs in queue
>  Server: no server active
>  Status: job '==rezdruck@stielow+285.2.1' saved at 16:38:40.944
>  Filter_status: done at 16:38:40.924
>  Rank   Owner/ID                  Class Job Files                 Size Time
> incoming ==rezdruck@stielow+286.2.1 A   287 texc3.r1709462           0 16:38:42
> done   ==rezdruck@stielow+285.2.1   A   286 texc3.r1709461        1159 16:38:40
>
> -------------------------------------------
>
> My printcap:
> -------------------------------------------
> .common1
>         :qq
>         :check_for_nonprintable@
>         :save_on_error
>         :send_failure_action=hold
>         :sd=/spool/lpd/%P
>         :lf=/spool/lpd/%P/lpd-errs
>         :ifhp=banner_only@,banner@,config=/etc/ifhp.conf
>         :filter_options=$C $A $F $H $J $K $L $P $Q $R -Zmountform=$-Q \
>  -Z,$-O,$-Z $a $c $d $e $f $h $i $j $k $l $n $p $r $s $w $x $y $-a
> .xerox
>         :rw:sh:mx#0
>         :tc_only
>         :sd=/spool/lpd/%P
>         :lf=/spool/lpd/%P/lpd-errs
>         :lp=/dev/null
>         :ifhp=config=/etc/ifhp.conf
>
> rezdruck1:
>         :tc=.common1
>         :lpd_bounce
>         :filter=/opt/LPRng/lib/filters/rezdruck_filter.pl
>         :lp=xn2825-m202@localhost
>
> xn2825-m202:client:force_localhost@:rm=lpdstgt1
> xn2825-m202
>         :server
>         :save_when_done
>         :tc=.xerox
>         :if=/opt/LPRng/lib/filters/ifhp -Tbanner_only@ -Tbanner@
> -Tmodel=n2825
> -Tpjl_job
>         :lp=/dev/null
> -------------------------------------------
>
> File "status.pr" of rezdruck1 queue:
>
> processing 'dfA287stielow', size 4640, format 'f', IF filter
> 'rezdruck_filter.pl' at
> 2002-03-11-16:38:41.887 ## A===rezdruck@stielow+286.2.1 number=287
> process=17975
> IF filter 'rezdruck_filter.pl' filter finished at
> 2002-03-11-16:38:42.147 ##
> A===rezdruck@stielow+286.2.1 number=287 process=17975
> printing finished at 2002-03-11-16:38:42.148 ##
> A===rezdruck@stielow+286.2.1
> number=287 process=17975
> sending job '==rezdruck@stielow+286.2.1' to xn2825-m202@localhost at
> 2002-03-11-16:38:42.154 ## A===rezdruck@stielow+286.2.1 number=287
> process=17975
> connecting to 'localhost', attempt 1 at 2002-03-11-16:38:42.154 ##
> A===rezdruck@stielow+286.2.1 number=287 process=17975
> connected to 'localhost' at 2002-03-11-16:38:42.163 ##
> A===rezdruck@stielow+286.2.1
> number=287 process=17975
> requesting printer xn2825-m202@localhost at 2002-03-11-16:38:42.163 ##
> A===rezdruck@stielow+286.2.1 number=287 process=17975
> sending control file 'cfA287stielow' to xn2825-m202@localhost at
> 2002-03-11-16:38:42.168 ## A===rezdruck@stielow+286.2.1 number=287
> process=17975
> completed sending 'cfA287stielow' to xn2825-m202@localhost at
> 2002-03-11-16:38:42.176 ## A===rezdruck@stielow+286.2.1 number=287
> process=17975
> sending data file 'dfA287stielow' to xn2825-m202@localhost at
> 2002-03-11-16:38:42.176 ## A===rezdruck@stielow+286.2.1 number=287
> process=17975
> waiting for subserver to exit at 2002-03-11-16:38:43.722 ## A=<NULL>
> number=0
> process=17974
> waiting for subserver to exit at 2002-03-11-16:41:19.543 ## A=<NULL>
> number=0
> process=17974
> waiting for subserver to exit at 2002-03-11-16:51:15.178 ## A=<NULL>
> number=0
> process=17974
>
>
> Thanks in advance,
>
> Sergiy Kovalenko
> Firmengruppe Dr. Gueldener
>
>
> -----------------------------------------------------------------------------
> YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
> The address you post from MUST be your subscription address
>
> If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
> or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
> to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
> with:                           | example:
> subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
> unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]
>
> If you have major problems,  send email to [EMAIL PROTECTED] with the word
> LPRNGLIST in the SUBJECT line.
> -----------------------------------------------------------------------------
>


-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to