Would using -Xxmn option speed up an xpath/DOM application

A developer mentioned in another thread
"You can increase the default maximum heap size. Different OSes and JVM/versions have an upper limit for this.
For the Sun JVM the command line option is doc'd in the docs. It is "-Xmxn" where n is replaced with something like "80m". The default size is 64m (meg) for 1.3 ."
My question is would using the -Xxmn speed up a java application using xpath and DOM or no?

This may speed it up if the amount of time spent garbage collecting is getting too high. As you raise the size of a heap it has to garbage collect less often given a fixed rate of allocations per unit time. Unfortunately, the time it takes to GC also rises a bit with a large heap, so your mileage may vary.
Take a look at the rate at which you are GC'ing. use -verbose:gc to do that.
Also, raising -XmsNNm (NN is number of megs) to raise the initial heap size can also help improve startup speed. This should be either the like amount of memory you need or some reasonable fraction of the maximum heap size (perhaps == to the max heap size). This will eliminate extra GC's and time spent to grow the heap as the application runs.
If you are GC'ing fairly often (every few to 10 seconds) and the GC's take a fair amount of time (consistently greater than .5 to 1 seconds), you might want to further tune the heap. For Sun and Java 1.3.1, I often use something like this to run large programs and J2EE servers (the exact numbers may vary:
java -server -Xms256m -Xmx512m -XX:NewSize=128m -XX:MaxNewSize=128m -XX:SurvivorRatio=2
Take a look at this: http://java.sun.com/docs/hotspot/index.html
Chuck

Similar Messages

  • Would using 2 disks speed up burning a DVD

    In a previous life I optimized the performance of applications by distributing I/O over more than one drive. Would it help to do something similar when burning a DVD project either to a DVD or to a disk image? Presumably iDVD is reading the iMovie definition and writing the encoded date somewhere ... originally I thought it was writing it directly to the .img file (for the disk image) but from a previous thread I think that most of the writing is to the .dvdproj file (package).
    So would it help to put the iMovie file on drive A and the .dvdproj file on drive B? and the .img on drive A (assuming that .img is written at the end after iMovie file is not being used)? Or is there a better way of doing this .. or is this not an issue if the application is not I/O bound but CPU bound?

    No longer relevant

  • I used to be able to right click on an image, a pop menu would show an option for properties. Where is the properties click option?

    I used to be able to right click on an image, a pop menu would show an option for properties. Where is the properties click option?
    Why did they change the pop-up menu? How can I revert Firefox to previous version?
    == version update

    To get that right-click menu item back use the extension at https://addons.mozilla.org/en-US/firefox/addon/14228/

  • Would using a Apple Time Capsules be easier to use as you can use the Airport Utility to set everything up? Would using encryption affect the speed / durability / life span of the drive in a computer or Time Capsule?

    Would using a Apple Time Capsules be easier to use as you can use the Airport Utility to set everything up?
    OR would there be better programs out there that would do more than Airport Utility on a non Apple drive?
    Would using encryption affect the speed / durability / life span of the drive / Fusion drive in a computer or Time Capsule?

    1. Time Capsules are the easiest device to setup for Time Machine.
    2. Sorry this is unclear. There are a huge number of routers available that have far superior controls than apple routers.. some support Time Machine.. most don't. They negate your question 1. in being difficult to setup. And alot of 3rd party devices that claim Time Machine compatibility are unreliable.
    3. Encryption is irrelevant.

  • Hello.  I upgraded my MIFI 2200 (had no contract on it) to a Jetpack (with a contract) when customer service told me this 4G device would use less data because it was faster.  This was not correct.  Anyway, I got the device, had problems, did tech support

    I upgraded my MIFI 2200 (had no contract on it) to a Jetpack (with a contract) when customer service told me this 4G device would use less data because it was faster.  This was not correct.  Anyway, I got the device, had problems, did tech support, re-activated my MIFI.  1.  Decided to return the device. Spent hours with Customer Service, then finally up to Management, they agreed to take it back and void the contact, I sent it back immediately – and instead of voiding the contact they transferred it to my MIFI! Please cancel the contract on the MIFI. 2.  During the short time I had the Jetpack I continually received overage alerts, took it all the way up to 30 GB, each time I backdated the new data plan except twice when customer service did and failed to back date the increase, and once the computer locked customer service out and could not increase.  The end result is I have a $495 bill, many of these alerts were false since I ended up with only 14 MG for the month, etc.  I am asking that my bill be reduced significantly to reflect no overage and to compensate for these problems. Please open up a ticket for this.

    I had Verizon JetPak and you will find it will eat data like crazy. I opted to sign on to ATT Uverse and configured my phones and other devices to the WiFi on the Uverse system. It took about 5 minutes to completed the configuration.  I was using 10 to 12 GB monthly to support 5 devices. Even if you use Verizon DSL, you are still subjected to same GB allotment.  In my area, Verizon DSL is not available. With Uverse, I have 250 GB monthly to use, and I have not even come close to using anything of that magnitude. I reduced my GB package with Verizon to 2 GB per month and since having ATT Uverse, I never use more than 1GB a month with Verizon.
    I have no problem with Verizon cell phone service as we get a much stronger signal where we live than you can with ATT or any others.  It is just my opinion, but if you are running multiple devices off Verizon Jetpak, you will eventually spend a fortune to keep pace.  I pay $60 a month for 18 Mbps speed, although ATT have packages that cost much less. But, it saves me a bundle each month. The cost of Uverse alone is worth not having to run everything through a Jetpak.  
    If you have the  option to use another DSL service provider in your area, I recommend dumping the Jetpak and sign on with another carrier.

  • How long do I wait for A DVD with Lion? 3.5Gb download would use 50% of my months amount - too much too slow.

    At 3.5Gb download, it will be too much for many MAc users.  How have 3 Macs that will run Lion but a download of 3.5Gb, as I am told, would use 50% of my family monthly download of 7Gb.  I'm not going to go that way which leaves me with no options unless I can buy a DVD.  APple shouldn't assume everyone has a massive download limit or very fast download speed.
    Dave Roberts
    Mac user since 128K Mac in 1985.

    Dave,
    Don';t worry you are not alone.
    1) There will be no DVD (as of time of writing)
    2) There *will* be a USB Dongle though, available August from Apple
    3) You can go to an Apple Store (If you have one! ) - Download the Installer and BEFORE YOU RUN IT, you can either create a DVD or clone it. This is because when the installer runs it self destructs.
    4) Note you only need to download once - you can the use 3) above to clone and update up to 5 Macs on the same Appleid.
    Regards,
    Shawn

  • I have an Airport Express that I am trying to use connected by ethernet to my iMac G4 running Mac OS 10.4.11.  I need to update the Airport software in order to use security option WPA2 Personal.  I currently have Airport software v. 5.6.1.

    I have an Airport Express that I am trying to use connected by ethernet to my iMac G4 running Mac OS 10.4.11.  I need to update the Airport Express softwart in order to use security option WPA2 Personal to connect to the internet through my Airport Extreme.  I currently have Airport Express software version 5.6.1.  How can I update this software? (I can connect directly to my Airport Extreme by ethernet and download the update that way).  Is a later version of A E software available for download anywhere?   Any suggestions would be greatly appreciated.
    Thanks.

    Download and install AirPort Utility 5.4.2 for Mac OS X 10.4.11 "Tiger" here:
    AirPort Utility 5.4.2
    Once installed, launch AirPort Utility. It will tell you if a firmware upgrade is available for your Express.

  • My keyboard freezes after using the option key... what gives?

    I have a 17" MacBookPro with OSX 10.6.8
    The problem:   My keyboard key freeze after using the " option key"  in Photoshop or  when downloading a file using the option key.
    I can usually use it 2 or 3 times before it makes a chirping cricket like sound… then my keys freeze up.? The only way to correct it is to restart.
    Anyone else have or had this issue?   it's frustrating.  What's the deal?

    hausman wrote:
    tianmiao0304 wrote:
    Thanks for your explanation!
    Can I just bring my laptop to the nearest service center and get this problem solved directly? You know, usually it will takes several days to receive the backup keyborad, I can't wait
    You'll have to phone the service center and ask. (When I lived not far from Lenovo's Canadian service center and wanted to bring in a ThinkPad for warranty repair they said that would be OK with them but my unit would be put on a queue the same as if I'd shipped it in. They simply didn't offer walk-in, while you wait service.)
    In the interim it may or may not be possible to reattach the key, even just temporarily, depending on whether it wasn't put on properly at the factory or if it's physically broken in some way. Or you could use an external keyboard until Lenovo sends you a replacement, etc.
    I've just call the local service center, he told me that he can not repair individual key, they can just replace the whole keyboard..... How bad luck I am!!!

  • How to use CSS option in Answers

    Hi,
    I have around 5 Dashboards, which includes close to 20 Reports.
    I would like to learn how I can format column name (like Font, Size) and data appearance in each report.
    Currently am doing it manually, one column by one column. I would like to know how to use CSS option.
    Regards,
    Jitendra

    The easiest way is to do this is to create a new "skin" for your dashboards or either modify the default. The location of the default folder is /res/s_oracle10/b_mozilla/views.css. The view.css file is where you can go and customize the classes. For example, if you want to customize the Pivot Table Row Header, search for .PTRH and then you can alter the existing formatting or add additional specifications.

  • Don't use Backstage option in Office 2013

    The new backstage view in Office 2010 was great for a business environment.  It showed a long list of recent workbooks and recent folders and so, even working on many workbooks, there was a very good chance that one, or at worst two, clicks would get
    me to the workbook I needed to work on.
    In 2013 this is a whole lot harder as you only see either recent workbooks or recent folders and the lists take up more space so fewer files/folders are visible.  Also Skydrive, which I doubt if many businesses would use, is far too prominent and cannot
    be removed (?)  The list of recent files in the menu bar is too narrow so it is often not possible to distinguish between files with similar names without hovering over and waiting!
    Anyway, there is an option, (File/Options/Save) "Don't show the Backstage when opening or saving files".  I have tried this option in Word and Excel and it doesn't seem to make any difference, at all.  Am I missing something?
    Oh BTW as IT manager I am recommending that we do not move to Office 2013.  Backstage and color theme are the killers.

    1st, well, I just counted the number of the Recent Workbooks on Office 2010 and Office 2013, and the number of Office 2010 is 3 more than Office 2013. When Office 2010 has 21 recent workbooks, Office 2013 has 18 on my 19" screen (1280*1024 resolution).
    If that matters, try click the Send a Frown button in any Office applications to send your feedback to the Product team, :)
    2nd, the width of the Recent Workbooks in Office 2013 are almost the same as Office 2010, I mean, if you can see the full name in Office 2010, you should also be able to see the full name in Office 2013.
    From the above, it seems you might have mixed up the Start screen with the Recent Workbooks menu (which, BTW, also shows 16 recent workbooks).
    To turn off the Start screen, uncheck the option "Show the Start screen when this application starts" in Excel or other Office applications.
    3rd, the option "Don't show the Backstage when opening or saving files" does make a difference, try figure it out by compare the save or open behavior between turn it on and off.
    4th, for the "color theme" issue, now we have "White", "Light Gray" and "Dark Gray", and our product team is also aware of the feedback from our cutomers, let's hope we can get more themes from the future release.
    5th, for the SkyDrive, yes, I haven't found any option to remove it. Unless you are interested in creating your own customized backstage view. If so, I'd suggest you to visit the Office for Developers forums for further discussion:
    http://social.msdn.microsoft.com/Forums/en-US/category/officedev
    Max Meng
    TechNet Community Support

  • Blu Ray burning: is it worth using multipass option?

    Does it make sense to use "Multipass" option on Blu Ray setting using only one computer?
    Is there visible difference from "not-Multipass" burning?

    IMO, yes.
    2 Pass will always give better quality than 1 Pass. The question is how noticeable it will be. The more movement in your movie, the more Compressor's analysis pass can ensure it's encoded correctly.
    2 Pass will always take longer than 1 Pass – in fact, twice as long.
    And no one would say that 2 Pass looks twice as good.
    So if you had a very tight deadline, you would be justified in choosing 1 Pass. But if you have the time (like overnight), there certainly is no downside…and there is some upside.
    Do a test on a short, challenging section and judge for yourself.
    Russ

  • Problem in reports 6i  while using delimiter option.

    Hi,
    I am facing problem in report writer while using delimiter option.
    Report summary
    ==============
    In my report I am having two queries in data model and two different repeating frame for each in layout.
    These quires are called based on the user parameter. That means if user parameter is 1 then query 1 is called and the report is kick off and same for query 2 when user parameter is 2).
    Problem Encountered
    =================
    Both these reports are running fine while using pdf option to generate report .
    While using delimiter option only one of the query is able to generate report (based on which ever is created first and rest will give 0 byte file).
    I have also trapped it while using messages and it is logically flowing fine.
    I think report writer does not support such scenario.
    please expedite on this.
    thankx
    peyush

    Hi,
    There are no such limitations with Reports. If I understand properly, you run the Report twice, in each run, you are trying to execute different query, and you generate two dilimited Reports output files? This should work fine. Try out the latest Reports 6i patch-10 for this. You can even approach Oracle Support with your testcase. FYI, with Reports 6i patch-11, a new feature "dlimited data" is introduced which will give delimited output with a data dump i.e it would not be dependent upon the Reports layout. You can probably try out this new feature also.
    Thanks,
    Rohit Hi Rohit,
    Thanks for the information.
    well I am generating single output file on each run .
    the problem is somewhat funny.
    I have build query2 in data model after query1.
    query 1 is giving me correct output both in .PDF and delimiter version.
    But query2 is giving me 0 byte file for delimiter version although in .PDF it is running fine.
    When I took out query2 to another module it is running fine for both.
    I hope this make sense.
    Moreover if u still not clear about the problem and thinks that u can help me out please send me ur mail id so that I can send you the RDF copy.
    Thanks
    Mohit...

  • "Use iCloud" option does not appear in GarageBand for iOS

    For work, I have an iPad 2 running iOS 7.0.4. I recently updated GarageBand on that device to version 2.0. I have several songs on my work iPad that I would like to share via iCloud to my new home iPad mini (Retina) WiFi also running iOS 7.0.4, also with GarageBand version 2.0 installed.
    I went into Settings > GarageBand > and toggled on the "Use iCloud" option on both my work iPad 2 and my home iPad mini.
    On my work iPad 2:
    On my home iPad mini:
    Next, I opened GarageBand on my work iPad 2. When I tapped on the "+" icon, there was no option to "Use iCloud" (as noted in this CNET article: http://howto.cnet.com/8301-11310_39-57408186-285/how-to-use-icloud-with-garageba nd-for-ios/). Here is the screenshot:
    When I tapped on the "Select" button and selected a song, no iCloud icon appears anywhere on the screen. Here is the screenshot:
    So, at this point, I'm fairly frustrated because what should be a fairly easy and obvious solution is simply not appearing.
    I decide to try the same method on my new home iPad mini. I opened GarageBand, but this time when I tapped on the "+" icon, it brought me straight to the Instrument view. So I went back to Song view. When I tapped on the "Select" button and selected a test song, again no iCloud icon appears anywhere on the screen. Here is the screenshot:
    I tried hard restarting both iPads. Nothing. I tried deleting and re-installing GarageBand on the new home iPad mini (didn't want to on the work iPad 2 or I'd lose what I was trying to share!). Again, nothing. I would really just like to transfer via iCloud my personal song files from my work iPad 2 over to my home iPad mini. It should be simple to do and I don't really understand what I'm doing wrong here. I have followed all the instructions correctly, but the "Use iCloud" option just isn't working for me on either device.
    I have been unable to find any other support threads similar to my problem. I'm hoping someone here can help me... PLEASE! I'm at my wit's end here :/

    You are right, Hulu, that important bit of information is not even mentioned on the GarageBand Help page:  Use iCloud with GarageBand
    The document only mentions, that iCloud for GarageBand will have to be enabled. And it is really not obvious, that the "Sync Documents and Data" needs to be active to, or your iPad will not sync GarageBand projects, because no application data will be synced at all.

  • Require Code which export SQL Query resuluts to excel using checkbox option

    Hi All,
    I need a sample code which can export the SQL Query results directly to an excel file using checkbox option. for example
    if I select checkbox1 and press a save button, then on backend SQL Query will execute and save the results in a excel file and so on.
    Thanks in advance..
    Regards,
    Chetan

    Thanks for the Code.
    Actually I need a code which is based on combo base values and when I click on Button, the SQL Query will execute using SQL Connection string and the results from that query will save into a excel file. Below is the screenshot of the form. Hope this will
    clear the requirements.
    Hello,
    To be honest, this forum is not for coding for anybody.
    You could refer to the suggestions shared above, and if you get any issue when using that code, you could share the code and error with us, we will focus on your code to help you.
    You could separate them into multiple steps, like the following.
    1. Getting the value of any control, like the textbox and combobox or even checkbox.
    2. Execute method inside button click event handler.
    3. Using ado.net to execuate sql query.
    4. Saving data to Excel.
    Then you could have a try step by step, if you get any issue, then post it in another thread with the code and error message.
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Boot "Lion" of a usb then use it as i would use "Snow leopard"

    Hey there, this may sound horribly stupid and amature, so sorry in advance
    Im running "Snow leopard" right now and i love it, i dont want to upgrade ( it just works for me )
    BUT!
    i need to use certain software thats only available to "Lion"
    So, is it possible to Boot "Lion" of a usb then use it as i would use "Snow leopard"  in the sense of like, installing software, music and all the stuff like that
    when the usb is in ?
    Then when i turn off the laptop pull out the usb, and boot normally im right back into my familiar home "Snow Leopard" and nothings Changed ??
    Cheers in advance, any help/ suggestions are appriciated !

    Welcome to Apple Support Communities
    If what you want to do is to install OS X Lion (or Mountain Lion) onto a USB drive and install apps there, you can use it. You just need a USB drive with the space for OS X Lion and your apps. Note that OS X takes about 10 GB, so add the size of your applications.
    First, you have to format the USB drive by using a GUID partition map and "Mac OS Extended (Journaled)" as "Format" > http://pondini.org/OSX/DU1.html
    Then, your USB drive is ready. Now, if you haven't purchased OS X Lion yet, call Apple to purchase it > http://support.apple.com/kb/HE57 They will give you a redeem code you have to insert in the Mac App Store.
    When the download finishes, the OS X Lion installer will show up, so follow its steps. In the window where it asks you for the partition to install OS X Lion, choose your USB drive and the installation will start.
    By default, your Mac will always start up from the USB drive. As you are going to unplug it, after installing Lion, open System Preferences > Startup Disk, and choose the Snow Leopard disk. Then, when you want to start up from OS X Lion, hold the Option (Alt) key while your Mac is starting, and select your USB drive

Maybe you are looking for

  • Embed jpg in a pdf without re-compressing it during export or save?

    I need to create a pdf-portfolio. Therefore I want the images included to look their best. I thought it a small matter to individually compress the images in photoshop for optimal appearance and size, and then to include them in a document for pdf-ex

  • PA Integrated Planning with Excel.

    Good day guys I'm busy setting up PA planning with Excel. I've built the planning layout and linked it to a planner profile. Im now at the maintaining the file description screen. I would like to save the file description but cannot find how to do it

  • Send IDocs to machines depending of the Organizational Units.

    hello, I want to know if there is a way to send IDocs to a determain machine depending of the organizational Unit or their sub-tree objects. Imagine, I have 10 organizational Units (10 countries), and I want to send to each country without sending th

  • Airport 802.11ac with FW 7.7.1 not working with iPhone

    I bought the new Airport 802.11ac. First I tried to connect with my iPhone 4s. This was only working with no security feature activated on the Airport. From the moment I switch on WPA or WPA2 on the airport my mobile phone is not able to connect. Doe

  • Do I need an anti-virus system with Firefox

    Do to down load anti-virus program to search on Firefox