IBM®
Skip to main content
    United States change      Terms of use
 
 
Select a scope:    
     Home      Products      Services & industry solutions      Support & downloads      My account     
alphaWorks  >  XML  >  

ToXgene

A template-based generator for complex, semantically-correlated collections of XML documents.


Date Posted: November 16, 2001
Overview Requirements DownloadFAQsForum Reviews

1. How is a template processed?
2. What does dump="yes" mean in a list declaration?
3. How much memory do I need to run ToXgene?
4. Does ToXgene do any memory management?
5. Is there a way to optimize the memory usage?
6. How do I set the amount of memory to use?


1. How is a template processed?

Each declaration in a template is processed sequentially in the order it is declared.
Back to top Back to top

2. What does dump="yes" mean in a list declaration?

It means that the content of that list will be written in an XML document named after the list. For example, if the list is named my_list, it will be dumped into a document named my_list.xml.
Back to top Back to top

3. How much memory do I need to run ToXgene?

ToXgene memory requirements are dictated by the size of the tox-lists that you create in your template. Memory requirements can be very high for complex lists of reasonable size, such as the one used for generating orders in the TPC-H sample.
Back to top Back to top

4. Does ToXgene do any memory management?

ToXgene implements a very simple garbage collection mechanism: ToXgene keeps track of all references to lists made by other lists or document declarations by a counter. Lists that are not used by other lists or documents are not generated. Also, when a document (or list) that refers to list X is finished, X's reference counter is decremented; the memory used by X is released as soon as no more references to X exist in the template.
Back to top Back to top

5. Is there a way to optimize the memory usage?

Yes. Declare your lists as late as possible (that is, only immediately before it will be used by another list or by a document declaration).
Back to top Back to top

6. How do I set the amount of memory to use?

The Java Run-time Environment takes one parameter that specifies the minimum amount of memory that any application should be allowed to use. You can set this value by modifying the MIN_HEAP variable in the scripts that invoke ToXgene, located in the $(TOXGENE_HOME)/bin directory.
Back to top Back to top
Download now Download now

Related technologies

For platform(s):
Java

For topics:
semantics


Related resources

Semantics Research topic

 

    About IBM Privacy Contact