Under the hood - Page-New

Hi all,

With respect to creating a New Page in PRPC, we have the following.

PublicAPI - createPage
Create a new page of the specified class. If an existing page has the same name, the old page becomes anonymous.

PRThread - createPage
Create a new page of the specified class If an existing page has the same name, the old page becomes an unnamed page.

and following is what help says and for most of us, the common understanding with visual clues.

Page names are unique within the clipboard. If another page with the new name is already present, the system deletes that page and adds the new page with that name.

with all these definitions, I am bit curious how Pega handles the memory when creating pages. For example what does anonymous and unnamed means with respect to memory. Any thoughts? (PRPC 5.4 SP2)

Thanks and Regards

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.


Keep up to date on this post and subscribe to comments

December 13, 2010 - 6:12am


Somehow I cannot update my own post, anyway

Following article has some reference to anonymous and unnamed pages, but still it is better to have a good explanation to what happens internally with respect to memory.

Basics of clipboard structure and management

Thanks and Regards

November 2, 2012 - 11:42pm

It is old post but I happend to read it.

Let me put my understanding on it.


when a page is created using Public API- CreatePage, in the Heap Memory that page(Page is java object) is created and it references in the stack. And then when we create the page with the same and the object already created becomes anonymous object and it looses the reference in the stack and new page created get the referecne from the stack. Sicne the old page created looses reference in the heap memory, it become eligible for garbage collection.




November 4, 2012 - 10:57am

Hi Kartheepan

In PRPC within Thread scope we can have Named and Unnamed (anonymous) pages, so anonymous pages are perfectly legal pages with references, only thing is that they do not have a name and application logic does not have to manage the life cycle of them.

And using API methods we can create named pages and unnamed pages, for example you will see page name as the second parameter of the method.

So my confusion was, in the API method description it says if an existing page has the same name (which means they are talking about named pages) the old page become anonymous or unnamed but in help for Page-New it simply says PRPC will delete the old page.

At least according to my testing, PRPC will not delete the page, the old page will become anonymous or unnamed according to the API description, which means if you have a reference to the old page, you can still use that. So in this case you will have two pages, named new page and unnamed old page.

Would love to see your conclusion from your own testing.