Problem with InDesign server - Server slows down fast

My javascript code iterates the pages of the InDesign Document and searches for the text frames with some special character style.
I found some samples from Jongware :
sourcelist = app.activeDocument.findText()
and
sourcelist = app.activeDocument.pages[p].textFrames[f].findText();
if I use the first variant the memory goes to ca. 1.2GB (the server has 4GB), the search is completed in ca. 2 minutes but InDesign Server works incredibly slow.
The problem is I have to find a page for each text found.
If I use second variant the memory goes high slowly and so each iteration needs more time.
After 300th page InDesign Server needs up to 30-40 seconds to process the page.
(First pages are processed 3-4 per second)
I tried several possible implementations, like
for each page
     var actualPage = pages[i]
     for each frame
          var actualFrame = frames[i]
          var sourceList = searchText(actualFrame)
               parseText(sourceList)
or
var actualPage=null,  actualFrame = null, sourceList = null;
for each page
     actualPage = pages[i]
     for each frame
          actualFrame = frames[i]
          sourceList = searchText(actualFrame)
               parseText(sourceList)
I've tried functions with local variables. Nothing changes.
Processing of the first 50 pages is really fast, but the test document has 630 pages.
And I have no ideas how to make InDesign continue to work fast.
Have someone had similar problem? Any ideas?

To clarify my comment on pages:
JavaScript objects referencing a native InDesign object have an internal representation for their "address" in the DOM, a textual form (similar to an XPath) is available via toSpecifier(). The specifier starts at the document and then follows collections (e.g. pages) and collection accessors (e.g. itemByID()) to finally reach the same object.
You can see that the specifier of the document before and after the close/open roundtrip changes in CS5 or later (different document ID), where CS4 used a different specifier form (itemByName() for the document) . The renumbered document ID renders previous references to the same page invalid - see the isValid property. If you want to revive such a stale object reference across close/open, you can remember the page ID and use your reopened document's myDoc.pages.itemByID() method to get to the same object.
Regarding your other performance problem: print the output of the ExtendScript helper function "$.summary()" before and after the code sequence in question, or compute the differences. You may want to precede that with two explicit calls for the garbage collection "$.gc()" - yes, double invokation seems to be more thorough. Sometimes you find memory leaks that way, for example caused by the javascript "closure" design pattern (all those "Workspace" objects).
Dirk

Similar Messages

  • Intermittent proxy error "There is a problem with the proxy server's security certificate. Outlook is unable to connect to the proxy server "

    Hi all,
    From time to time (at least once a day), the following message pops up on the user's screen:
    "There is a problem with the proxy server's security certificate. Outlook is unable to connect to the proxy server . Error Code 80000000)."
    If we click "OK" it goes away and everything continues to work although sometimes Outlook disconnects. It is quite annoying...
    Any ideas?
    Thank you in advance

    Hi,
    For the security alert issue, I'd like to recommend you check the name in the alert windows, and confirm if the name is in your certificate.
    Additionally, to narrow down the cause, when the Outlook client cannot connect again, I recommand you firstly check the connectivity by using Test E-mail AutoConfiguration. For more information, you can refe to the following article:
    http://social.technet.microsoft.com/Forums/en-US/54bc6b17-9b60-46a4-9dad-584836d15a02/troubleshooting-and-introduction-for-exchange-20072010-autodiscover-details-about-test-email?forum=exchangesvrgeneral
    Thanks,
    Angela Shi
    TechNet Community Support

  • Problems with AOL IMAP server connection on my BlackBerry Z10 STL100-3, and BB PlayBook 64GB WiFi

    Problems with AOL IMAP server connection on my BlackBerry Z10 STL100-3, and BB PlayBook 64GB WiFi
    Thursday 4:20am EST, 02-19-2015
    Hi, My connection to the AOL IMAP server has suddenly failed - Says "Not Connected" on Accounts page
    I haven't changed anything and this just started failing this morning.
    I've saw same issue on my Blackberry PlayBook 64GB.
    Is anyone else recently experiencing AOL IMAP Errors?
    Solved!
    Go to Solution.

    Yes! Same thing happened suddenly to my Z10 this morning. No AOL. 

  • HT4864 I am getting a triangle with an exclamation point next to my inbox...it says: There may be a problem with the mail server or network. Verify the settings for account "MobileMe" or try again.  The server returned the error: Mail was unable to log in

    I can send but cannot recieve email
    This is the messege I am gewtting:
    There may be a problem with the mail server or network. Verify the settings for account “MobileMe” or try again.
    The server returned the error: Mail was unable to log in to the IMAP server “p02-imap.mail.me.com” using “Password” authentication. Verify that your account settings are correct.
    The server returned the error: Service temporarily unavailable

    Also if I go to system preferences accounts and re-enter the password it fixes the glitch sometimes.

  • Problem with the new server UCS C220 for set IP to CIMC

    Hi
    We’ve a problem with the new server UCS C220.
    We bought two servers UCS C220 M3 for CallManager 8.6 with High Availability.
    When we turn on the server during the boot and when it tells us, oppress F8 to enter at the CIMC and set the IP. But it never enters at the CIMC.
    Then, we configure our DHCP server and our switch, we connect the three gigabyte ports to our switch to give him an IP to the CIMC, so and then can enter via browser, but neither works.
    Note. The dedicated management NIC does not link, the other two ports do make link.
    What do you suggest to put an IP to CIMC and start installing our applications?
    regards

    You may have noticed that there is no DVD rom on the c220. What you need to do is:
    Login into the CIMC from your browser
    Luanch the KVM
    Insert the VMware DVD in your machines drive
    On the KVM pop up there should be a tab to mount the drive, after mounting it click on Macros and choose ctrl_alt+delete to restart.
    After the VMware OS installs press F2 to enter IP.
    Browse to the VMware ip to download the Vsphere client
    Open the Vsphere client, enter the ip of the vmware and the username will be root and no password if you did not set one.
    You can now upload OVA templates or manually create virtua machine from this enviroment.
    Hope this help

  • Why do I get an "unable to connect - There may be a problem with the mail server or network." message from iCloud.  I have verified the settings.  I can access my iCloud account online but can't send or receive e-mail via the mail account.

    Text limits to the "Question" link prevents a full explanation:
    This is a long-time problem.  I have tried to resolve it with Apple but their "Customer Support" is merely a name.
    I can go online and access my e-mail but when I try to send or receive e-mail via iCloud through my internet server (Google fiber now but the same situation existed with my prior service), I receive "There may be a problem with the mail server or network.  Verify the settings for 'Apple Email' and try again.
    "The server returned the error:  The server 'p0-imap.mail.me.com' refused to allow a connection on port 143."
    Well, I have verified the setting and tried again and again and …
    Well, you get the idea …

    JungleTaxi Cabbie wrote:
    Csound1: iCloud: Configuring Mail with Mac OS X v10.6 or iOS 4
    Enter your Incoming Mail Server, User Name, and Password using the following settings:
    Incoming Mail Server: mail.me.com
    User Name: Your iCloud email address (excluding @me.com)
    Password: Your password
    Last Modified: Jun 27, 2013
    Maybe you should test these things before calling people out, because these settings do function perfectly well.
    iCloud is not supported on Snow Leopard or lower, why bother to mention it?
    The OP has an iCloud account, and that can not be opened without Lion or Mountain Lion (on a Mac), IOS5 or 6 (on an iPhone/iPad)
    The document I linked to is Apples documentation for iCloud on current devices,I don't care whether you believe that you know better than they do, but it will affect the people who follow your advice as it won't work
    JungleTaxi Cabbie wrote:
    Also, if you're not running Lion or Mountain Lion, there is no "Mail, Contacts & Calendars" prefpane.
    I never said that there was, perhaps you imagined it.

  • There is a problem with the proxy server's security certificate. The name on the security certificate is invalid or does not match the name of the target site "Mailserver"

    Good day Guys
    First of all I am not an Exchange Expert, and I might be asking a very stupid question, but please bare with me. :) 
    While I was on leave our Mail server fell over and The company got a Specialist to help out for the time being.
    We where\are on Microsoft Exchange 2007 , which Fell over, and the specialist was able to recover as much data as he could.
    They then installed Exchange 2013 and tried to migrate everything from 2007 to 2013 and not everything migrated over.
    But the problem is, Outlook Anywhere was enable on 2007 and worked a 100% (before the disaster)
    With Exchange 2013 I get the following error message when trying to connect With Outlook 2013, using an external connection:
    "There is a problem with the proxy server's security certificate. The name on the security certificate is invalid or does not match the name of the target site "Mailserver"
    Outlook is unable to connect to the Proxy server. (Error Code 0)"
    Has anyone had the Similar when migrating over from 2007 to 2013 or is this an Issue on IIS and nothing to do with Exchange migration?
    Your assistance will be greatly appreciated.

    Hi,
    Firstly, I would suggest we use Exchange 2013 FE as the Outlook Anywhere proxy server.
    For the certificate issue, it mostly occurs because the host name that Outlook are trying to access does not match the certificate SAN. Please check with this point. If they do not match, you
    can change the host name by referring to the following article:
    https://support.microsoft.com/kb/940726/en-us?wa=wsignin1.0
    Thanks,
    Simon Wu
    TechNet Community Support

  • Problem with InDesign CC redrawing the screen too slow while using Zoom tool

    Hello. I got a problem with InDesign CC redrawing the screen too slow while using Zoom tool. Sometimes it takes more than a secong to zoom in or out. However InDesign CS6, Photoshop CC, Illustrator CC works just fine. What could be the problem, videocard or something else? Below is my PC configuration: OS Windows 8 Pro (x64); processor Intel Core i7 2600k CPU 3,40GHz; video adapter NVIDIA GeForse GTS 450; monitor NEC PA271W (2560x1440).

    Yes it’s a bug. The trick is to select the tool and then left click the photo information strip and hold for a few seconds until you see the windows bar at the top of the screen (not responding)
    The lasso tool should then work normally.

  • Logon problem with oracle management server

    I have problem with Oracle Management Server when I connect to the OMS message comes
    The exception (java.lang.NullPointerException) occurred.
    if any body have any idea pls tell us

    Hi,
    Oracle has changed the Enterprise Manager from version 1.5 to 2.0 .
    With the new Oracle8i dataase server another service has been added.
    If you want to user the OEM you have to install The Managment Server.
    The Managment server has its own user and privileges and is recommended when using OEM.

  • Backup Problem with only Production Server

    Hi all
    Here i have backup problem in only production server. In my tape drive device all schedule backup of Development  server and Quality Server and Production server . In this i get all backup in Development and Quality server, But in Production server backup was fail and not only one all backup is fail from last 2 days . So can u tell me what is the problem with my production server and how can i find it in production.
    And any hardware issue or OS issue is responsible for this.
    Please help me out.
    Thanks
    Keyur

    Hi,
    Can u pls post us the backup log? Also let us know ur product details like OS, SAP, DB version and also the backup tool(if any).
    Regards,
    Varadharajan M

  • Server getting slow down

    My windows server getting slow down
    windows 2008R2 & 12 gm ram is installed but then too getting slow.

    Hi
    Remove nested select and if all primary keys are then use single otherwise upto 1 rows
    also remove the unnecessary code like this
    see the below code you added twice the amount there
    delete the itab before looping
    use single loop to add the values
    --calculations--
    LOOP AT ITAB.
    IF ITAB-KSCHL <> ''.
    TOTAL1 = TOTAL1 + ITAB-AMOUNT.
    ENDIF.
    ENDLOOP.
    DELETE ITAB WHERE KSCHL <> ''.
    LOOP AT ITAB.
    TOTAL = TOTAL + ITAB-AMOUNT .
    ITAB-TDSWCT = ITAB-TDS + ITAB-WCT.
    ENDLOOP.
    Regards
    Shiva

  • I have problem with Adobe ColdFusion Server Manager.

    I have a problem with Adobe ColdFusion Server Manager when you log on and connect to the server. An advantage of the settings do not load.

    When I see others screen cuts of CF Server Manager here:
    http://www.coldfusionjedi.com/index.cfm/2009/10/21/Quick-example-of-Diff-within-the-ColdFu sion-Server-Manager
    http://forta.com/blog/index.cfm/2009/7/6/Simplified-ColdFusion-Server-Management
    the Errors View button display’s the yellow ! sign. Without a better guide I just thought that is a normal button icon until I noticed Charlie comment earlier in the thread and I thought hold up that is not normal.
    As it is when I press Errors View I get “no error” which might be because there is none or just simply not giving meaningful details as per some other CF Server Manager limitations previously noticed in other threads on forum here.
    I just hope some of that helps the original post to do with the display of the settings on left side. Maybe a better look at the error might help? Does anything get logged in CFadmin UI > Debugging & Logging > Log Files that relates to issue?
    Regards, Carl.

  • Can the problems with the Cirrus server cause this

    Hello,
    We are have been developing an application using the Cirrus server for two months now and today we are having difficulties with the Netconnection.call method which we use to call the OnRelay method on the other peer. When a peer invokes the call method on his netconnection the OnRelay on the peer is called some of the time (so it is really unreliable).
    We are curious whether this could be related to the recent problems with the Cirrus server? If not, what could be a reason the calls are working only some of the time?
    regards,
    Kevin

    while the problems with our hosting provider are not yet resolved, the cluster should be operating nominally. that should include the proper and relatively reliable functioning of the relay/onRelay function.
    note that relay/onRelay is rate limited to about 1 relay every 2 seconds (approximated with a sliding window and about 10 relays every 20 seconds). this rate limit is in place because the relay/onRelay function is expensive to provide and a developer was abusing it. the limit is implemented by dropping relay requests for a time if the rate exceeds the limit point. the limit is per sender NetConnection.

  • Problem with iPlanet Web Server 6

    We are getting an intermittent problem with our web server, the users start to get problems connecting to the web site.
    I have found the following message in the error log -
    failure ( 2390): Error accepting connection -5928, oserr=130 (Connect aborted)
    can anybody help???

    Check out the below.
    Problem 4680491. CSS causes oserr=130 in iWS 6.0 logs.
    Workaround
    If you are using the Cisco Content Services Switch (CSS) with Sun ONE Web Server and have set the value of the sticky bit setting in CSS to on, the following error is logged periodically in the error logs:
    failure ( 2210): Error accepting connection -5928, oserr=130 (Connect aborted)
    This is caused not by a defect in Sun ONE Web Server but by the setting of the sticky bit in CSS. To avoid the error logging, set the value of the sticky bit in CSS to off.
    Which as been fixed in iWS 6.0 SP5.
    For more info check the below link.
    http://docs.sun.com/source/816-6434-10/rn60sp5.html
    Dakshin.

  • Problem with SAP XI server

    Hi guys
    I got a problem with the XI server,the status do not change to wait,they are always in run,i can send you the screen shots to there mail id if anyone is able to slove.I think it is the oracle problem,not sure though.I am unable to log on to the server
    thanks
    [email protected]

    I am looking for
    ADM100 SAP Web AS Administration I,
    ADM102 SAP Web AS Administration II
    ADM200 SAP Web AS Java Administration )
    If any one of you has this or any xi material,
    Can you please mail me to [email protected]
    Thanks in Advance,
    jaya

  • Problems with my Samba-Server

    Dear all,
    I've some problems with my samba-server. It's running on an XServe G5 on OS X 10.4. The problem I have, is that after an undefined time (several days to several months) don't react. It's running as an print-server and primary as an primary domain controller. This time, wehen everyone can't log in, I restart the service and everything runs without any problems, but this is very problematic.
    has someone of you had this problem yet or can someone help me with my problem?
    Thanks a lot,
    Fabian

    Fabian, you might be better posting in the File Services forum. This forum is used more for network subjects (e.g., DNS, VPN)...
    http://discussions.apple.com/forum.jspa?forumID=702
    -david

Maybe you are looking for