472,811 Members | 1,102 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,811 software developers and data experts.

Small but significant memory leak in Pyana XSLT processor

Hi all

I'm working with a long running, threaded server which serves HTTP
requests with content which are passed through a XSLT processor. The
XSLT processor I'm using is the Pyana processor.

I have one compiled stylesheet which I uses to process all responses.
This way I only need to read and compile the stylesheet once.

When serving a rather small page 404-page I get the server to process
300-400 requests per second over a LAN connection. This is from the
apache benchmark program, I don't know how reliable these numbers are
but they give me some guidance.

My problem:

When serving my content without the XSLT processor the process size
remains the same size. (about 18MB in the windows task manager). But
when I use the XSLT processor the process will slowly gain size. About
1MB for each 10k requests, and this memory are not freed.

I feel certain that the leak are located in the XSLT processor since the
problem occurs when that is plugged into the system.

There is not much wrapping code so I don't think the problem are of that
manner.

So I wonder if anyone have had the same experience with this XSLT
toolkit before and if you were able to fix it.

The software I'm using on the computer I've done the tests on:

Python 2.4 (ActivePython)
Pyana 0.9.2
Win XP Pro SP2

I've tried with both precompiled and self compiled versions of the Pyana
package.

ola

--
--------------------------------------
Ola Natvig <ol********@infosense.no>
infoSense AS / development
Jul 18 '05 #1
1 1537
Ola Natvig wrote:
My problem:

When serving my content without the XSLT processor the process size
remains the same size. (about 18MB in the windows task manager). But
when I use the XSLT processor the process will slowly gain size. About
1MB for each 10k requests, and this memory are not freed.

I feel certain that the leak are located in the XSLT processor since the
problem occurs when that is plugged into the system.

There is not much wrapping code so I don't think the problem are of that
manner.

So I wonder if anyone have had the same experience with this XSLT
toolkit before and if you were able to fix it.


I'm the author of the Pyana package and, to the best of my knowledge,
Pyana does not have any memory leaks. It seems like there are three
possibilities: your code is leaking somehow (seems unlikely based on
the above), Pyana is leaking (very possible) or Xalan is leaking (very
possible).

If Pyana is leaking then it is likely that the problem can be fairly
easily isolated and fixed (by me). Would it be possible for you to
isolate the leaking code and send it to me? If that is not possible,
then let me know and I can recommend steps to help find the problem
youself.

Cheers,
Brian
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Qin Zhou | last post by:
This is possible memory leak can be reproduced by the following code. I am hoping someone can help me out with simple solutions! Thanks in advanced! using System; using System.IO; using...
0
by: Brian Piscopo | last post by:
Memory leak and .NET -- like oil and water :- I've written a distributed system for parallel processing of large tasks. Each machine has an agent on it that sends processor usage information back...
5
by: iceColdFire | last post by:
Hi, I am writing some hybrid application s using C/C++ modules together....Here I have created and used a lot of malloc(...) and new(...) operators. I am interested in checking on the...
15
by: Chetan Raj | last post by:
Hi All, We have a web-application in asp.net that interacts with legacy code written in COM. The memory usage in aspnet_wp.exe increases every sec and never reduces. Using the .NET performance...
1
by: John Moore | last post by:
I have a set of code that is called on every page load that loads an xslt file. The xslt file has an embedded <script> tag. Loading the page mutliple times causes aspnet_wp.exe to use all available...
16
by: JCauble | last post by:
We have a large Asp.net application that is currently crashing our production servers. What we are seeing is the aspnet_wp eat up a bunch of memory and then stop unexpectedly. Does not recycle. ...
1
by: Charlotte | last post by:
Hello, We are doing a stability test on our application to prepare for Microsoft SQL Server 2000 certification, and we found a memory leak, but we cannot find its source and fix it. We use an...
3
by: thomas.porschberg | last post by:
Hi, I want to read records from a database and export it in an arbitrary format. My idea was to feed a class with a String array fetched from the database and let this class fire SAX events as...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.