RE: Memory usage

2001-05-03 Thread Jody Brownell

setting the bean to null just marks the object as ready to be collected
calling System.gc() requests to the vm when you are ready, please do your
stuff.
But gc only occurs when nothing else is happening ... it is a LOW priority
thread.

So as long as you have requests, GC will probably not happen  but, this
is 
vm implementation dependant ... so maybe it will :) depends on the vendor.

 -Original Message-
 From: Jurrius, Mark [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 03, 2001 11:43 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Memory usage
 
 
 Correct me if I'm wrong.  If for instance I want a bean 
 removed knowing that
 System.gc() does not happen immediately, would setting the 
 bean equal to
 null force the bean to be removed from memory right away and 
 not have to
 rely on the garbage collection to eventually take place? 
 
 Mark
 
 
 -Original Message-
 From: William Kaufman [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, May 03, 2001 10:07 AM
 To:   '[EMAIL PROTECTED]'
 Subject:  RE: Memory usage
 
  That your finalize method is called, doesn't mean that
  the garbage collector has released your objects. The 
  only way to be shure that this happens, is to explicitly
  run System.gc().
 
 Even that's not sufficient: it just suggests to the VM that
 garbage-collecting might be a good idea right now.  Any actual garbage
 collection would take place later, in another thread.
 
 And, even when it does happen, that doesn't mean all the memory will
 necessarily be released to the OS: the VM will hold on to 
 some so that it
 won't need to go back to the OS on the next allocation.
 
 You might want to get a memory profiler (like JProbe) and see 
 where the
 memory is going.  At the very least, try doing something like,
 
   Runtime rt = Runtime.getRuntime();
   System.err.println(Free=+rt.freeMemory()+,
 total=+rt.totalMemory());
 
 often, to see how much memory is actually in use, and how much is just
 allocated from the OS.
 
 -- Bill K.
 
 
  -Original Message-
  From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, May 03, 2001 5:51 AM
  To: '[EMAIL PROTECTED]'
  Subject: AW: Memory usage
  
  
  That your finalize method is called, doesn't mean that
  the garbage collector has released your objects. The 
  only way to be shure that this happens, is to explicitly
  run System.gc(). Otherwise it's up to the VM when it will
  free the memory. (Sun's JDK per default only releases
  memory if otherwise an OutOfMemoryError would occur, so
  unless you reach this border the VM will constanly grow)
  
  See also the options for the JVM:
-verbose:gc (Any VM)
-Xincgc (Sun SDK 1.3.*)
-Xms (Sun + IBM)
-Xmx (Sun + IBM)
  
  -Ursprüngliche Nachricht-
  Von: Garry De Toffoli [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 3. Mai 2001 14:34
  An: [EMAIL PROTECTED]
  Betreff: Memory usage
  
  snip/
  I have in trouble with the memory usage with Tomcat 3.21, 
 WinNt 2000 
  and Jdk 1.3 of Sun. the problem is that any operation does 
  not release 
  the memory occuped; to control the memory usage I use the 
  Task Manager;
  when Tomcat start, the memory used from the process Java is 
 of 9608 K;
  when I request a Jsp page that has an error, like a variable 
  not declared, 
  the memory used is 11868K; if I wait for 1 ay also, this 
  value does not 
  change, so the memory used is not released,
  
  running a correct Jsp page, the memory used increase, and 
 this is not 
  released yet; 
  I have written a log on the finalize method of my class, 
 and this is 
  called, so the garbage collector release all my object.
   
  This behavoir is normal? 
  Probably changing the version of Tomcat this problem may be 
 corrected.
  snip/ 
  
 



RE: ArrayList vs. Vector

2001-04-23 Thread Jody Brownell

which (in theory) makes ArrayList's cheaper ... if you dont 
need synchronized access to your structure, you should use with 
ArrayList.

jb

 -Original Message-
 From: Nick Christopher [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 23, 2001 4:59 PM
 To: [EMAIL PROTECTED]
 Subject: Re: ArrayList vs. Vector
 
 
 Hunter Hillegas wrote:
 
  I use Vectors in some parts of my Web app and I'm thinking 
 about using
  ArrayLists instead...
 
  Any caveats to using them in a Web app environment?
 
  Hunter
 
 Vectors are thread safe, by default ArrayLists aren't.
 



setting up logs

2001-02-15 Thread Jody Brownell

Is there a way to set up a log file to report what servlets/jsps have been 
accessed. I need the following information  

- what webapp and servlet/jsp
- time of access
- from where (ip address)

Jasper.log is ok for jsp, if it reported from where but I still need to 
now about servlets.

thanks in advance

Jody Brownell
Product Development
Core Networks Inc.
P: (902) 481-5750, ext. 2132
F: (902) 481-5799
[EMAIL PROTECTED]

CoreOS - Broadband Provisioning System - http://www.CoreNetworks.com
Streamline account provisioning, support processes, IP address and DHCP
management and RF level monitoring, for both DOCSIS and proprietary systems.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: setting up logs

2001-02-15 Thread Jody Brownell

I can, except I am trying to log when a third party servlet 
serves a request. I dont have the source or control over what it logs!

:(

Jody

 -Original Message-
 From: Collins, Jim [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 15, 2001 11:18 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: setting up logs
 
 
 Can't you just log every time a servlet is accessed in the doGet/doPut
 methods?
 
 Jim.
 
 -Original Message-
 From: Jody Brownell [mailto:[EMAIL PROTECTED]]
 Sent: 15 February 2001 15:09
 To: '[EMAIL PROTECTED]'
 Subject: setting up logs
 
 
 Is there a way to set up a log file to report what 
 servlets/jsps have been 
 accessed. I need the following information  
 
 - what webapp and servlet/jsp
 - time of access
 - from where (ip address)
 
 Jasper.log is ok for jsp, if it reported from where but I 
 still need to 
 now about servlets.
 
 thanks in advance
 
 Jody Brownell
 Product Development
 Core Networks Inc.
 P: (902) 481-5750, ext. 2132
 F: (902) 481-5799
 [EMAIL PROTECTED]
 
 CoreOS - Broadband Provisioning System - http://www.CoreNetworks.com
 Streamline account provisioning, support processes, IP 
 address and DHCP
 management and RF level monitoring, for both DOCSIS and 
 proprietary systems.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 
 
 PLEASE READ: The information contained in this e-mail is confidential
 and intended for the named recipient(s) only. If you are not 
 an intended
 recipient of this email you must not copy, distribute or take any
 further action in reliance on it and you should delete it and 
 notify the
 sender immediately. Email is not a secure method of communication and
 Nomura International plc cannot accept responsibility for the accuracy
 or completeness of this message or any attachment(s).  Please 
 check this
 e-mail for virus infection, for which Nomura International plc accepts
 no responsibility. If verification of this email is sought then please
 request a hard copy. Unless otherwise stated any views or opinions
 presented are solely those of the author and do not represent those of
 Nomura International plc. This email is intended for informational
 purposes only and is not a solicitation or offer to buy or sell
 securities or related financial instruments. Nomura 
 International plc is
 regulated by the Securities and Futures Authority Limited and is a
 member of the London Stock Exchange.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: setting up logs

2001-02-15 Thread Jody Brownell

right now I have three logs ... servlet.log, jasper.log, tomcat.log.
jasper.log is great for loggin when a JSP serves a request, tomcat.log
doesn't really tell me anything and servlet.log is just as bare as
tomcat.log.

I have all verbosityLevel set to "INFORMATION", I dont really think I need 
debug info :)

e.g 

Logger name="tc_log"
path="logs/tomcat.log"
verbosityLevel = "INFORMATION"
/

Logger name="servlet_log"
path="logs/servlet.log"
verbosityLevel="INFORMATION"
/

Logger name="JASPER_LOG"
path="logs/jasper.log"
verbosityLevel = "INFORMATION" /

Out of curiousity, how would I combine both the jasper.log and servlet.log?

Logger name="servlet_log"
path="logs/action.log"
verbosityLevel="INFORMATION"
/

Logger name="JASPER_LOG"
path="logs/action.log"
verbosityLevel = "INFORMATION" /

would this work? I guess I could just try it :)



 -Original Message-
 From: Collins, Jim [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 15, 2001 11:46 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: setting up logs
 
 
 Could you not have a logging servlet then? that logs all 
 requests, then
 forwards the request to the appropriate servlet.
 
 Jim.
 
 -Original Message-
 From: Jody Brownell [mailto:[EMAIL PROTECTED]]
 Sent: 15 February 2001 15:23
 To: '[EMAIL PROTECTED]'
 Subject: RE: setting up logs
 
 
 I can, except I am trying to log when a third party servlet 
 serves a request. I dont have the source or control over what it logs!
 
 :(
 
 
 
 PLEASE READ: The information contained in this e-mail is confidential
 and intended for the named recipient(s) only. If you are not 
 an intended
 recipient of this email you must not copy, distribute or take any
 further action in reliance on it and you should delete it and 
 notify the
 sender immediately. Email is not a secure method of communication and
 Nomura International plc cannot accept responsibility for the accuracy
 or completeness of this message or any attachment(s).  Please 
 check this
 e-mail for virus infection, for which Nomura International plc accepts
 no responsibility. If verification of this email is sought then please
 request a hard copy. Unless otherwise stated any views or opinions
 presented are solely those of the author and do not represent those of
 Nomura International plc. This email is intended for informational
 purposes only and is not a solicitation or offer to buy or sell
 securities or related financial instruments. Nomura 
 International plc is
 regulated by the Securities and Futures Authority Limited and is a
 member of the London Stock Exchange.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: setting up logs

2001-02-15 Thread Jody Brownell

I like that! Unfortunatly I am looking for a quick fix for now. I
will definatly consider this at a later time, 

thanks, Jody

 -Original Message-
 From: Michael Wentzel [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, February 15, 2001 11:24 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: setting up logs
 
 
  Could you not have a logging servlet then? that logs all 
  requests, then forwards the request to the appropriate servlet.
 
 I think you'd probably be better off implementing your own 
 RequestInterceptor.  
 
 Check out /src/org/apache/tomcat/core/RequestInterceptor.
 
 While this is can be Tomcat specific it a very logical place
 to put this mechanism IMHO.
 
 Servlet would also work but that would be adding a step in the
 processing of every request.
 
 
 ---
 Michael Wentzel
 Software Developer
 Software As We Think - http://www.aswethink.com
 mailto:[EMAIL PROTECTED]
 
 - Punisher of those who cannot spell dumb!
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Couple quick questions.

2001-02-05 Thread Jody Brownell

Hello,

Where can I get a list of configuration options for mod_jk.so?
Is there any documentation on the ajp12 and ajp13?




Jody Brownell
Product Development
Core Networks Inc.
P: (902) 481-5750, ext. 2132
F: (902) 481-5799
[EMAIL PROTECTED]

CoreOS - Broadband Provisioning System - http://www.CoreNetworks.com
Streamline account provisioning, support processes, IP address and DHCP
management and RF level monitoring, for both DOCSIS and proprietary systems.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Help please :)

2001-02-05 Thread Jody Brownell

Hello,

I tried to post the following to the soap.apache list with no luck, 
You are my last hope :)  When using tomcat(3.2.1) to serve soap requests
everything works 
fine. When apache(1.3.17) is added to the picture I get the follwing stack
dump.

Is it possible that mod_jk.so is stripping whitespace. That is what it
sounds like.
When apache is removed from the picture, everything works as per usual. 

BTW, we are using ajp13 for protocol ... 

org.xml.sax.SAXParseException: White space is required between the public
identifier and the system identifier.
at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1056)
at
org.apache.xerces.framework.XMLDTDScanner.reportFatalXMLError(XMLDTDScanner.
java:651)
at
org.apache.xerces.framework.XMLDTDScanner.scanExternalID(XMLDTDScanner.java:
1198)
at
org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScanner.java
:1104)
at
org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDocumentSc
anner.java:2192)
at
org.apache.xerces.framework.XMLDocumentScanner.access$000(XMLDocumentScanner
.java:86)
at
org.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XM
LDocumentScanner.java:776)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:948)
at
org.apache.soap.util.xml.XercesParserLiaison.read(XercesParserLiaison.java:8
5)
at org.apache.soap.rpc.Call.invoke(Call.java:157)
at samples.stockquote.GetQuote.main(GetQuote.java:103)
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Protocol;
msg=!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"
HTMLHEAD
TITLE400 Bad Request/TITLE
/HEADBODY
H1Bad Request/H1
Your browser sent a request that this server could not understand.P
Client sent malformed Host headerP
HR
ADDRESSApache/1.3.17 Server at soap.broadjump.corenetworks.com Port
80/ADDRESS
/BODY/HTML
]
at org.apache.soap.rpc.Call.invoke(Call.java:167)
at samples.stockquote.GetQuote.main(GetQuote.java:103)

Sorry if this is off topic, but it appears to be an apache/mod_jk issue.

Jody Brownell
Product Development
Core Networks Inc.
P: (902) 481-5750, ext. 2132
F: (902) 481-5799
[EMAIL PROTECTED]

CoreOS - Broadband Provisioning System - http://www.CoreNetworks.com
Streamline account provisioning, support processes, IP address and DHCP
management and RF level monitoring, for both DOCSIS and proprietary systems.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]