since ‎18-04-2017
‎10-12-2019
iannovic
Level 2
Re: Access design_dialog(currentStyle) properties from within a Sling Model
Avatar

iannovic

iannovic
- Adobe Experience Manager
Hi Veena,Sorry for the late reply.I managed to try this with a new model that i created and it worked beautifully. Thank you for finding my problem!!!Regards,Ian

Views

751

Like

1

Replies

0
Re: Access design_dialog(currentStyle) properties from within a Sling Model
Avatar

iannovic

iannovic
- Adobe Experience Manager
No I wasn't using @Model(adaptables = SlingHttpServletRequest.class), I had @Model(adaptables = Resource.class) instead. that was probably my issue then?

Views

679

Likes

0

Replies

0
Re: Access design_dialog(currentStyle) properties from within a Sling Model
Avatar

iannovic

iannovic
- Adobe Experience Manager
Update:I decided to extend WCMUse instead, this class has access to getCurrentStyle(). I am still interested if anyone has a way to make this work with a sling model though!

Views

679

Likes

0

Replies

0
Access design_dialog(currentStyle) properties from within a Sling Model
Avatar

iannovic

iannovic
- Adobe Experience Manager
Hi,I am trying to access currentStyle properties from within a SlingModel. The SlingModel is being called from a HTL component using data-sly-use that has a functional design_dialog and accessible currentStyle.This was the only suggestion I could find using google:@Inject @Source("script-bindings") private Style currentStyle;and then@PostConstructpublic void init() { String startLevel = currentStyle.get("startLevel",String.class); }This isn't working. Can anyone tell me what I am doing wrong??Th...

Views

1.8K

Like

1

Replies

7
Re: Can you see if a page contains unpublished changes from author interface?
Avatar

iannovic

iannovic
- Adobe Experience Manager
Thank you Manoj! this is perfect.

Views

766

Likes

0

Replies

0
Can you see if a page contains unpublished changes from author interface?
Avatar

iannovic

iannovic
- Adobe Experience Manager
Hi,Is there a way to check if a page has UNPUBLISHED changes? We have many users who may come into a page and make a change, but sometimes there will already be modifications to the page that have not been published.If this is an out of the box feature I would love to know how to do it!Thanks,Ian

Views

1.3K

Likes

0

Replies

2
Re: Automation of data store garbage collection
Avatar

iannovic

iannovic
- Adobe Experience Manager
Hi,I am having the same problem here as swathib78201134. Did anyone figure this out?

Views

2.4K

Likes

0

Replies

0
Re: Investigating the cause of open sessions and bad site performance!
Avatar

iannovic

iannovic
- Adobe Experience Manager
Ok I will focus on search speed then,Thank you for your insight and time

Views

428

Likes

0

Replies

0
Re: Investigating the cause of open sessions and bad site performance!
Avatar

iannovic

iannovic
- Adobe Experience Manager
Hi smacdonald2008,I am speaking to daycare about adjusting the GC parameters and trying this.Thank you for reaching out to support!Ian

Views

425

Likes

0

Replies

0
Re: Investigating the cause of open sessions and bad site performance!
Avatar

iannovic

iannovic
- Adobe Experience Manager
Hi Jorg,The search.html component has a very big index on the /content/sites/global/en/*. I imagine this needs to be broken up into smaller indices. If these JCR Queries are causing lots of load on the system is the memory usage constantly at capacity? Wouldn't we be seeing some level of trends up and down to reflect these requests?Do you think any of these JCR Queries are persisting on the heap?Here are some graphs of the publisher's heapWhy are the JCR Queries persisting in memory for such a l...

Views

425

Likes

0

Replies

0
Re: Investigating the cause of open sessions and bad site performance!
Avatar

iannovic

iannovic
- Adobe Experience Manager
Hi,I posted the threaddump on my google drive: threaddump.tar.gz - Google Drive. Let me know if you can access and what you think.Thank you again for all of your help.

Views

419

Likes

0

Replies

0
Re: Investigating the cause of open sessions and bad site performance!
Avatar

iannovic

iannovic
- Adobe Experience Manager
Hi Jorg, thank you for your response.My version is AEM 6.2, and we do not have AEM Forms deployed at the moment. I will check threaddumps, and I have to check and see if GC logs are being recorded (I do not think they are, I haven't seen or looked at them before).In the thread dump analyzer, this stack trace below was blocking 8 threads:oak-repository-executor-1oak-repository-executor-1 - priority:5 - threadId:0x00007fe5a0ff1000 - nativeId:0x3a80 - state:RUNNABLEstackTrace:java.lang.Thread.State...

Views

429

Likes

0

Replies

0
Re: Investigating the cause of open sessions and bad site performance!
Avatar

iannovic

iannovic
- Adobe Experience Manager
Hi,Thank you for the reply and check in with support, I will try this and update on this thread

Views

426

Likes

0

Replies

0
Investigating the cause of open sessions and bad site performance!
Avatar

iannovic

iannovic
- Adobe Experience Manager
Hi everyone,My AEM Production instance is experiencing very high garbage collection CPU Usage and performance issues. I think it might be because of sessions being left open.I am checking /system/console/jmx on one of the publishers experiencing high garbage collection (over 60% cpu usage over 10+ hours)I know that by default, there is ~85 SessionStatistics mbeans, and right now there is ~119 SessionStatistics mbeans. I think that very large objects on the heap are being retained due to these se...

Views

2.1K

Like

1

Replies

13
Re: Debugging AEM Servers: How to use jmap and jstack linux commands
Avatar

iannovic

iannovic
- Adobe Experience Manager
Hi,Yes I was, but the document fails to mention that the correct way to take a threaddump in AEM servers right now is by using the "sudo /usr/local/bin/threaddump" command. I think this was a tool written by someone at adobe that exists on all the servers.Maybe have someone update that document to reflect that to avoid future confusion

Views

1.2K

Likes

0

Replies

0
Debugging AEM Servers: How to use jmap and jstack linux commands
Avatar

iannovic

iannovic
- Adobe Experience Manager
Hi Everyone,I recently had a post with adobe daycare and they said they were unable to help due to the lack of files provided for analysis. They asked specifically for log files (which I provided) and thread dump files (which I did not have created).Their instructions for future queries was to use "jstack" command to create thread dumps for them to help analyze and provided this URL for instructions: Take thread dumps from a JVM.I first determined the PID that JVM was running on using:"ps -el | ...

Views

2.0K

Likes

0

Replies

2
Re: Ajax call to servlet in sightly
Avatar

iannovic

iannovic
- Adobe Experience Manager
Link is broken

Views

2.1K

Likes

0

Replies

0
How to access a SlingServlet from Serverside JavaScript
Avatar

iannovic

iannovic
- Adobe Experience Manager
Hi everyone,I wrote a SlingServlet at @SlingServlet(resourceTypes = "/apps/global-components/left-nav", selectors = "breadcrumb", extensions = "data")It is just returning a JSON object that is a list of page paths.What is the best way to access this SlingServlet from Serverside JavaScript? or from HTL? I want to render the data doing something like this in HTL: ${path}

Views

454

Likes

3

Replies

1
Re: Redesigning a relational database within a JCR
Avatar

iannovic

iannovic
- Adobe Experience Manager
My company wants to migrate the database off of the server that it is currently running on by moving the database and linked applications into AEM

Views

415

Likes

0

Replies

1
Redesigning a relational database within a JCR
Avatar

iannovic

iannovic
- Adobe Experience Manager
Hi everyone,I am working on my first AEM web application and it involved importing a simple relational database into JCR. I read that having 1000 child nodes in the same folder is bad practice so I decided to redesign the table. The following is the approach I am taking:The app is a simple web form that has two parameters; Zipcode and ProductLine. These two parameters in tandem will form a unique node path. The path is formed as /content/myapp/database/master/zipcode/productline. However the zip...

Views

469

Likes

0

Replies

3
How to add a component to the paragraph system
Avatar

iannovic

iannovic
- Adobe Experience Manager
Hi Everyone,I am new to AEM development and I have made one of my first components.What would I have to do to be able to add the component via design and edit mode to a geometrixx page or my own web app's parsys?Thanks!

Views

1.5K

Like

1

Replies

2